mirror of
https://github.com/discourse/discourse.git
synced 2025-02-16 18:24:52 -06:00
correct spec to account for category definition topics
This commit is contained in:
parent
750d3a6b18
commit
4a35d055bc
@ -30,12 +30,12 @@ describe TopicQuery do
|
||||
# mods can see hidden topics
|
||||
TopicQuery.new(moderator).list_latest.topics.count.should == 1
|
||||
# admins can see all the topics
|
||||
TopicQuery.new(admin).list_latest.topics.count.should == 2
|
||||
TopicQuery.new(admin).list_latest.topics.count.should == 3
|
||||
|
||||
group.add(user)
|
||||
group.save
|
||||
|
||||
TopicQuery.new(user).list_latest.topics.count.should == 1
|
||||
TopicQuery.new(user).list_latest.topics.count.should == 2
|
||||
|
||||
end
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user