Promotion fails if the user account isn't old enough yet.

This commit is contained in:
Robin Ward
2015-04-14 12:05:09 -04:00
parent eaf5d21c41
commit 869d8e25ad
4 changed files with 40 additions and 3 deletions

View File

@@ -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)