FEATURE: rush posting read times for newly read posts

FEATURE: "read" indicator on posts
CHANGE: anon is now assumed to have read everything
This commit is contained in:
Sam
2014-06-03 11:48:52 +10:00
parent d7f62f7148
commit 3405253405
9 changed files with 57 additions and 18 deletions

View File

@@ -169,8 +169,8 @@ describe TopicView do
context '.read?' do
it 'tracks correctly' do
# anon has nothing
TopicView.new(topic.id).read?(1).should be_false
# anon is assumed to have read everything
TopicView.new(topic.id).read?(1).should be_true
# random user has nothing
topic_view.read?(1).should be_false

View File

@@ -88,7 +88,7 @@ describe SiteSetting do
end
describe "top_menu" do
before(:each) { SiteSetting.stubs(:top_menu).returns('one,-nope|two|three,-not|four,ignored|category/xyz') }
before(:each) { SiteSetting.top_menu = 'one,-nope|two|three,-not|four,ignored|category/xyz' }
describe "items" do
let(:items) { SiteSetting.top_menu_items }