Rename TopicView#last_read_post_id to TopicView#filtered_post_id.

This commit is contained in:
Guo Xiang Tan
2018-06-27 12:33:57 +08:00
parent cb69888758
commit cfa7898c2d
3 changed files with 10 additions and 10 deletions

View File

@ -583,12 +583,12 @@ describe TopicView do
end
end
describe '#last_read_post_id' do
describe '#filtered_post_id' do
it 'should return the right id' do
post = Fabricate(:post, topic: topic)
expect(topic_view.last_read_post_id(nil)).to eq(nil)
expect(topic_view.last_read_post_id(post.post_number)).to eq(post.id)
expect(topic_view.filtered_post_id(nil)).to eq(nil)
expect(topic_view.filtered_post_id(post.post_number)).to eq(post.id)
end
end
end