mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
Promotion fails if the user account isn't old enough yet.
This commit is contained in:
@@ -214,6 +214,8 @@ describe TopicView do
|
||||
# random user has nothing
|
||||
expect(topic_view.read?(1)).to eq(false)
|
||||
|
||||
coding_horror.created_at = 2.days.ago
|
||||
|
||||
# a real user that just read it should have it marked
|
||||
PostTiming.process_timings(coding_horror, topic.id, 1, [[1,1000]])
|
||||
expect(TopicView.new(topic.id, coding_horror).read?(1)).to eq(true)
|
||||
|
||||
Reference in New Issue
Block a user