spec/process/scheduler_spec.rb in eye-0.2.1 vs spec/process/scheduler_spec.rb in eye-0.2.2

- old
+ new

@@ -120,9 +120,17 @@ sleep 0.2 @process.alive?.should == false scheduler.alive?.should == false end + it "schedule unexisted method should not raise and break anything" do + scheduler = @process.scheduler + @process.schedule :hahhaha + sleep 0.2 + @process.alive?.should == true + scheduler.alive?.should == true + end + describe "reasons" do it "1 param without reason" do @process.schedule :scheduler_test3, 1 sleep 0.1 @process.last_scheduled_command.should == :scheduler_test3 \ No newline at end of file