spec/scheduler_spec.rb in scheduler_daemon-1.1.5 vs spec/scheduler_spec.rb in scheduler_daemon-1.1.6

- old
+ new

@@ -2,20 +2,20 @@ require 'scheduler_daemon/base' describe Scheduler::Base do before(:each) do @scheduler = Scheduler::Base.new(:skip_init => true, :silent => true) - @scheduler.stub(:log) + # @scheduler.stub(:log) end describe 'decide_what_to_run' do it "should support --only" do @scheduler = Scheduler::Base.new({:skip_init => true, :silent => true}, ['--only=alphabets']) - @scheduler.options['only'].should == ['alphabets'] + expect(@scheduler.options['only']).to eq ['alphabets'] end it "should support --except" do @scheduler = Scheduler::Base.new({:skip_init => true, :silent => true}, ['--except=balloons,monkeys']) - @scheduler.options['except'].should == ['balloons', 'monkeys'] + expect(@scheduler.options['except']).to eq ['balloons', 'monkeys'] end end -end \ No newline at end of file +end