Sha256: 51eaa7efd40ccac6ab58d61830b9c62d079702dbd998db6d82398b93d9abc4c5

Contents?: true

Size: 324 Bytes

Versions: 97

Compression:

Stored size: 324 Bytes

Contents

RSpec::Matchers.define :have_entry do |entry|
  match do |subject|
    if subject.class.name == 'Serverspec::Type::Cron'
       subject.has_entry?(@user, entry)
    elsif subject.respond_to?(:has_entry?)
      subject.has_entry?(entry)
    end
  end
  # For cron type
  chain :with_user do |user|
    @user = user
  end
end

Version data entries

97 entries across 97 versions & 1 rubygems

Version Path
serverspec-0.10.1 lib/serverspec/matchers/have_entry.rb
serverspec-0.10.0 lib/serverspec/matchers/have_entry.rb
serverspec-0.9.8 lib/serverspec/matchers/have_entry.rb
serverspec-0.9.7 lib/serverspec/matchers/have_entry.rb
serverspec-0.9.6 lib/serverspec/matchers/have_entry.rb
serverspec-0.9.5 lib/serverspec/matchers/have_entry.rb
serverspec-0.9.4 lib/serverspec/matchers/have_entry.rb
serverspec-0.9.3 lib/serverspec/matchers/have_entry.rb
serverspec-0.9.2 lib/serverspec/matchers/have_entry.rb
serverspec-0.9.1 lib/serverspec/matchers/have_entry.rb
serverspec-0.9.0 lib/serverspec/matchers/have_entry.rb
serverspec-0.8.1 lib/serverspec/matchers/have_entry.rb
serverspec-0.8.0 lib/serverspec/matchers/have_entry.rb
serverspec-0.7.13 lib/serverspec/matchers/have_entry.rb
serverspec-0.7.12 lib/serverspec/matchers/have_entry.rb
serverspec-0.7.11 lib/serverspec/matchers/have_entry.rb
serverspec-0.7.10 lib/serverspec/matchers/have_entry.rb
serverspec-0.7.9 lib/serverspec/matchers/have_entry.rb
serverspec-0.7.8 lib/serverspec/matchers/have_entry.rb
serverspec-0.7.7 lib/serverspec/matchers/have_entry.rb