Sha256: 49afae307b10c1885704e58b9d7121aa4d9d660e82d0e0524aeb0962f878efda

Contents?: true

Size: 431 Bytes

Versions: 6

Compression:

Stored size: 431 Bytes

Contents

require 'spec_helper'

include Specinfra::Helper::RedHat

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

6 entries across 6 versions & 1 rubygems

Version Path
serverspec-2.0.0.beta8 spec/type/cron_spec.rb
serverspec-2.0.0.beta7 spec/type/cron_spec.rb
serverspec-2.0.0.beta6 spec/type/cron_spec.rb
serverspec-2.0.0.beta5 spec/type/cron_spec.rb
serverspec-2.0.0.beta4 spec/type/cron_spec.rb
serverspec-2.0.0.beta3 spec/type/cron_spec.rb