From 38e4d877abee3c8e40edd932057e2bf16ad01e13 Mon Sep 17 00:00:00 2001 From: Patrick J Cherry Date: Fri, 16 Sep 2011 12:47:52 +0100 Subject: Big documentation update. --- test/tc_mauve_notification.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'test') 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 -- cgit v1.2.1