tests: eliminate as_user helper.

This commit is contained in:
evazion
2020-06-11 01:02:01 -05:00
parent 2d05004bef
commit 99a9149fc4
24 changed files with 84 additions and 130 deletions

View File

@@ -10,7 +10,7 @@ module Moderator
@user = create(:gold_user)
end
as_user do
as(@user) do
@post = create(:post)
end
end
@@ -48,7 +48,7 @@ module Moderator
end
should "render" do
as_user do
as(@user) do
@parent = create(:post)
@child = create(:post, parent: @parent)
end