Sha256: 31d547c00a7a60633250e7c71aed5900b14057e9aca04669ff424f03cbeaed61

Contents?: true

Size: 559 Bytes

Versions: 16

Compression:

Stored size: 559 Bytes

Contents

shared_examples_for 'support cron have_entry matcher' do |entry|
  describe 'have_cron_entry' do
    describe cron do
      it { should have_entry entry }
    end

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

shared_examples_for 'support cron have_entry with user matcher' do |entry, user|
  describe 'have_cron_entry' do
    describe cron do
      it { should have_entry(entry).with_user(user) }
    end

    describe cron do
      it { should_not have_entry('invalid entry').with_user(user) }
    end
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
serverspec-0.6.16 spec/support/shared_cron_examples.rb
serverspec-0.6.15 spec/support/shared_cron_examples.rb
serverspec-0.6.13 spec/support/shared_cron_examples.rb
serverspec-0.6.12 spec/support/shared_cron_examples.rb
serverspec-0.6.11 spec/support/shared_cron_examples.rb
serverspec-0.6.10 spec/support/shared_cron_examples.rb
serverspec-0.6.9 spec/support/shared_cron_examples.rb
serverspec-0.6.8 spec/support/shared_cron_examples.rb
serverspec-0.6.7 spec/support/shared_cron_examples.rb
serverspec-0.6.6 spec/support/shared_cron_examples.rb
serverspec-0.6.5 spec/support/shared_cron_examples.rb
serverspec-0.6.4 spec/support/shared_cron_examples.rb
serverspec-0.6.3 spec/support/shared_cron_examples.rb
serverspec-0.6.2 spec/support/shared_cron_examples.rb
serverspec-0.6.1 spec/support/shared_cron_examples.rb
serverspec-0.6.0 spec/support/shared_cron_examples.rb