Sha256: 983f28852e4e9efb903ef517797cff5853c958d655512f78a0c8c4696b946fef
Contents?: true
Size: 498 Bytes
Versions: 2
Compression:
Stored size: 498 Bytes
Contents
describe JenkinsCron::Job do it "create a simple example of job" do schedule = JenkinsCron::Schedule.new :schedule1 job = JenkinsCron::Job.new schedule, :test1 do command "echo test1" timer every: 5.minute timer every: :Monday end expect(job.name).to be(:test1) expect(job.params[:name]).to eq("schedule1-test1") expect(job.params[:shell_command]).to eq("bash -c 'echo test1'\n") expect(job.params[:timer]).to eq("H/5 * * * *\nH H * * 1") end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
jenkins_cron-0.0.3 | spec/jenkins_cron/job_spec.rb |
jenkins_cron-0.0.2 | spec/jenkins_cron/job_spec.rb |