mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
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:
@@ -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
|
||||
|
||||
@@ -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 }
|
||||
|
||||
Reference in New Issue
Block a user