Fix #4283: Profile no longer viewable through API.

This commit is contained in:
evazion
2020-02-05 15:25:26 -06:00
parent ccb87e13b1
commit 327bc46bd2
2 changed files with 5 additions and 23 deletions

View File

@@ -36,7 +36,7 @@ class UsersControllerTest < ActionDispatch::IntegrationTest
context "show action" do
setup do
# flesh out profile to get more test coverage of user presenter.
@user = create(:banned_user, can_approve_posts: true, is_super_voter: true)
@user = create(:banned_user, can_approve_posts: true, is_super_voter: true, created_at: 2.weeks.ago)
as_user do
create(:saved_search, user: @user)
create(:post, uploader: @user, tag_string: "fav:#{@user.name}")
@@ -71,7 +71,7 @@ class UsersControllerTest < ActionDispatch::IntegrationTest
xml = Hash.from_xml(response.body)
assert_response :success
assert_equal(false, xml["user"]["can_upload"])
assert_equal(false, xml["user"]["enable_safe_mode"])
end
end