Details
-
Type:
Bug
-
Status:
Resolved
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: 0.5.0
-
Component/s: None
-
Labels:None
Description
test_signup(MailerTest) - line 15
test fails because the actual value is computed 1 second after the expected value is computed and so assert_equal fails. Only happens occasionally (presumably when CPU usage is high whilst running tests)

time_test_helper.rb added with method pretend_now_is(time, &block) to override Time.now calls to return 'time' within the given block.