mirror of
https://github.com/discourse/discourse.git
synced 2025-06-06 13:06:56 +08:00
correct spec to account for category definition topics
This commit is contained in:
@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user