test/test_event.rb in reflexion-0.1.22 vs test/test_event.rb in reflexion-0.1.23

- old
+ new

@@ -8,13 +8,27 @@ def event() Reflex::Event.new end + def test_dup() + e1 = event + e2 = e1.dup + e1.block + e3 = e1.dup + assert_equal true, e1.blocked? + assert_equal false, e2.blocked? + assert_equal true, e3.blocked? + end + def test_block() e = event - assert_equal false, e.block? + assert_equal false, e.blocked? e.block - assert_equal true, e.block? + assert_equal true, e.blocked? + end + + def test_time() + assert_in_delta Time.now.to_f, event.time, 0.001 end end# TestEvent