spec/event_spec.rb in reactor-0.9.1 vs spec/event_spec.rb in reactor-0.9.2

- old
+ new

@@ -86,9 +86,15 @@ expect { jid = Reactor::Event.reschedule :no_old_turtule_time, at: (time + 2.hours), was: time expect(scheduled.find_job(jid).score).to eq((time + 2.hours).to_f) }.to change{ scheduled.size }.by(1) end + + it 'will not schedule an event when the time passed in is nil' do + expect { + Reactor::Event.reschedule :no_old_turtule_time, at: nil, was: time + }.to_not change{ scheduled.size } + end end describe 'event content' do let(:cat) { MyModule::Cat.create } let(:arbitrary_model) { ArbitraryModel.create }