tests: eliminate as_user helper.
This commit is contained in:
@@ -45,7 +45,7 @@ class UsersControllerTest < ActionDispatch::IntegrationTest
|
||||
setup do
|
||||
# flesh out profile to get more test coverage of user presenter.
|
||||
@user = create(:banned_user, can_approve_posts: true, created_at: 2.weeks.ago)
|
||||
as_user do
|
||||
as(@user) do
|
||||
create(:saved_search, user: @user)
|
||||
create(:post, uploader: @user, tag_string: "fav:#{@user.name}")
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user