mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-23 23:58:31 -05:00
correct spec to account for category definition topics
This commit is contained in:
parent
750d3a6b18
commit
4a35d055bc
1 changed files with 2 additions and 2 deletions
|
@ -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 a new issue