mirror of
https://github.com/discourse/discourse.git
synced 2024-11-22 08:57:10 -06:00
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:
parent
a5d4bf6dd2
commit
d9dca6482d
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user