Sha256: 78b928c336f7869d74e14fcfdf72dfacb536b8f01e9cd99a2f36e5d25115e0bb
Contents?: true
Size: 702 Bytes
Versions: 2
Compression:
Stored size: 702 Bytes
Contents
describe JenkinsCron::Schedule do it "create a simple example of schedule" do schedule = JenkinsCron::Schedule.new :group1 do job :test1 do options :shell_command, "echo test1" options :timer, "* * * * *" end job :test2 do options :shell_command, "echo test2" options :timer, "* * * * *" end end expect(schedule.name).to eq(:group1) expect(schedule.job(:test1)).to be_true expect(schedule.job(:test2)).to be_true expect(schedule.job(:test3)).to be_false expect(schedule.job(:test1).params[:shell_command]).to eq("echo test1") expect(schedule.job(:test2).params[:shell_command]).to eq("echo test2") end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
jenkins_cron-0.0.3 | spec/jenkins_cron/schedule_spec.rb |
jenkins_cron-0.0.2 | spec/jenkins_cron/schedule_spec.rb |