diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/tc_mauve_notification.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/tc_mauve_notification.rb b/test/tc_mauve_notification.rb index 4243874..0b3bc04 100644 --- a/test/tc_mauve_notification.rb +++ b/test/tc_mauve_notification.rb @@ -39,12 +39,12 @@ class TcMauveDuringRunner < Mauve::UnitTest def test_now? alert = Alert.new time = Time.now - during = Proc.new { @test_time } + during = Proc.new { Time.now == @test_time } dr = DuringRunner.new(time, alert, &during) - assert_equal(time, dr.now?) - assert_equal(time+3600, dr.now?(time+3600)) + assert_equal(true, dr.now?) + assert_equal(false, dr.now?(time+3600)) assert_equal(time, dr.time) end |