mirror of
https://github.com/discourse/discourse.git
synced 2025-06-01 09:08:10 +08:00
Rename TopicView#last_read_post_id
to TopicView#filtered_post_id
.
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user