DEV: Incorrect setup for test (#24736)

Why this change?

The test in question is testing an anon user instead of a user that has
no permissions to a given topic.
This commit is contained in:
Alan Guo Xiang Tan 2023-12-06 09:26:45 +08:00 committed by GitHub
parent a5d4bf6dd2
commit d9dca6482d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -113,6 +113,8 @@ RSpec.describe UserBadgesController do
end
it "does not include the attributes for topics which the current user cannot see" do
sign_in(user)
get "/user_badges.json", params: { badge_id: badge.id }
expect(response.status).to eq(200)