Sha256: 6fde41fe7e9d50f7447f69d48bc984daba3a429bdf92548af8d74adca45d1b6b

Contents?: true

Size: 545 Bytes

Versions: 5

Compression:

Stored size: 545 Bytes

Contents

require 'spec_helper'

set :os, :family => 'base'

describe commands.command_class('cron').create do
  it { should be_an_instance_of(Specinfra::Command::Base::Cron) }
end

describe cron do
  it { should have_entry '* * * * * /usr/local/bin/batch.sh' }
end

describe cron do
  it { should_not have_entry 'invalid entry' }
end

describe cron do
  it { should have_entry('* * * * * /usr/local/bin/batch.sh').with_user('root') }
end

describe cron do
  it { should_not have_entry('* * * * * /usr/local/bin/batch.sh').with_user('invalid-user') }
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
serverspec-2.0.0.beta13 spec/type/base/cron_spec.rb
serverspec-2.0.0.beta12 spec/type/base/cron_spec.rb
serverspec-2.0.0.beta11 spec/type/base/cron_spec.rb
serverspec-2.0.0.beta10 spec/type/base/cron_spec.rb
serverspec-2.0.0.beta9 spec/type/base/cron_spec.rb