Sha256: 970a22040a859eac18e68e575a4eb777b5abbc60b9fb8e1ce1eec6b5f14afca3

Contents?: true

Size: 427 Bytes

Versions: 6

Compression:

Stored size: 427 Bytes

Contents

require 'spec_helper'

set :os, :family => 'solaris'

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.beta19 spec/type/solaris/cron_spec.rb
serverspec-2.0.0.beta18 spec/type/solaris/cron_spec.rb
serverspec-2.0.0.beta17 spec/type/solaris/cron_spec.rb
serverspec-2.0.0.beta16 spec/type/solaris/cron_spec.rb
serverspec-2.0.0.beta15 spec/type/solaris/cron_spec.rb
serverspec-2.0.0.beta14 spec/type/solaris/cron_spec.rb