Sha256: 1ab33d8e3a72000767c5a8663ab95a40c51650f9cbc16aa5667a53af334826c6
Contents?: true
Size: 712 Bytes
Versions: 1
Compression:
Stored size: 712 Bytes
Contents
require File.dirname(__FILE__) + '/spec_helper' require 'scheduler_daemon/base' describe Scheduler::Base do before(:each) do @scheduler = Scheduler::Base.new(:skip_init => true, :silent => true) # @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']) 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']) expect(@scheduler.options['except']).to eq ['balloons', 'monkeys'] end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
scheduler_daemon-1.1.6 | spec/scheduler_spec.rb |