test/clockwork_test.rb in clockwork-0.2.0 vs test/clockwork_test.rb in clockwork-0.2.1

- old
+ new

@@ -60,9 +60,15 @@ assert_raise(Clockwork::NoHandlerDefined) do Clockwork.every(1.minute, 'myjob') end end + test "aborts when fails to parse" do + assert_raise(Clockwork::FailedToParse) do + Clockwork.every(1.day, "myjob", :at => "a:bc") + end + end + test "general handler" do $set_me = 0 Clockwork.handler { $set_me = 1 } Clockwork.every(1.minute, 'myjob') Clockwork.tick(Time.now)