Sha256: 09cc74986f8bfc122058d2c2079b791ee3e4b097f190b56913ace02b0192227e

Contents?: true

Size: 324 Bytes

Versions: 124

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

124 entries across 124 versions & 4 rubygems

Version Path
serverspec-2.42.3 lib/serverspec/matcher/have_entry.rb
serverspec-2.42.2 lib/serverspec/matcher/have_entry.rb
serverspec-2.42.1 lib/serverspec/matcher/have_entry.rb
serverspec-cem-acpt-2.42.0 lib/serverspec/matcher/have_entry.rb
serverspec-2.42.0 lib/serverspec/matcher/have_entry.rb
serverspec-2.41.8 lib/serverspec/matcher/have_entry.rb
serverspec-2.41.7 lib/serverspec/matcher/have_entry.rb
serverspec-2.41.6 lib/serverspec/matcher/have_entry.rb
serverspec-2.41.5 lib/serverspec/matcher/have_entry.rb
serverspec-2.41.4 lib/serverspec/matcher/have_entry.rb
serverspec-ruby19-2.24.3 lib/serverspec/matcher/have_entry.rb
serverspec-2.41.3 lib/serverspec/matcher/have_entry.rb
serverspec-2.41.2 lib/serverspec/matcher/have_entry.rb
serverspec-2.41.1 lib/serverspec/matcher/have_entry.rb
serverspec-2.41.0 lib/serverspec/matcher/have_entry.rb
serverspec-2.40.0 lib/serverspec/matcher/have_entry.rb
serverspec-2.39.2 lib/serverspec/matcher/have_entry.rb
serverspec-2.39.1 lib/serverspec/matcher/have_entry.rb
serverspec-2.39.0 lib/serverspec/matcher/have_entry.rb
serverspec-2.38.1 lib/serverspec/matcher/have_entry.rb