spec/scheduler_spec.rb in rufus-scheduler-3.0.2 vs spec/scheduler_spec.rb in rufus-scheduler-3.0.3
- old
+ new
@@ -691,9 +691,24 @@
@scheduler.paused?.should == false
end
end
+ describe '#down?' do
+
+ it 'returns true when the scheduler is down' do
+
+ @scheduler.shutdown
+
+ @scheduler.down?.should == true
+ end
+
+ it 'returns false when the scheduler is up' do
+
+ @scheduler.down?.should == false
+ end
+ end
+
#--
# job methods
#++
describe '#jobs' do