spec/cron_spec.rb in rufus-scheduler-2.0.16 vs spec/cron_spec.rb in rufus-scheduler-2.0.17
- old
+ new
@@ -120,7 +120,15 @@
sleep 4
@s.jobs.size.should == 0
stack.should == %w[ ok ok ok done ]
end
+
+ it 'raises on unknown options' do
+
+ lambda {
+ @s.cron '* * * * *', :pool => :party do
+ end
+ }.should raise_error(ArgumentError)
+ end
end