spec/at_spec.rb in rufus-scheduler-2.0.16 vs spec/at_spec.rb in rufus-scheduler-2.0.17
- old
+ new
@@ -111,7 +111,15 @@
r = @s.unschedule_by_tag('spec')
r.size.should == 3
r.first.class.should == Rufus::Scheduler::AtJob
end
+
+ it 'raises on unknown options' do
+
+ lambda {
+ @s.at Time.now + 3600, :first_at => (Time.now + 3600).to_s do
+ end
+ }.should raise_error(ArgumentError)
+ end
end