CHANGE: Hide category definition topics unless you are viewing that

category.
This commit is contained in:
Robin Ward
2014-02-04 15:55:30 -05:00
parent 13157b9b2e
commit 659546c4e4
2 changed files with 10 additions and 8 deletions

View File

@ -28,12 +28,12 @@ describe TopicQuery do
Topic.recent(10).count.should == 0
# mods can see every group and hidden topics
TopicQuery.new(moderator).list_latest.topics.count.should == 3
TopicQuery.new(moderator).list_latest.topics.count.should == 2
group.add(user)
group.save
TopicQuery.new(user).list_latest.topics.count.should == 2
TopicQuery.new(user).list_latest.topics.count.should == 1
end