Sha256: 021d98b2beef9cba51f5d312eea1757eb523407b9b3bffaed8a9de41c7d77e9c

Contents?: true

Size: 383 Bytes

Versions: 16

Compression:

Stored size: 383 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)
    else
      backend.check_routing_table(example, entry)
    end
  end
  # For cron type
  chain :with_user do |user|
    @user = user
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
serverspec-0.5.3 lib/serverspec/matchers/have_entry.rb
serverspec-0.5.2 lib/serverspec/matchers/have_entry.rb
serverspec-0.5.1 lib/serverspec/matchers/have_entry.rb
serverspec-0.5.0 lib/serverspec/matchers/have_entry.rb
serverspec-0.4.14 lib/serverspec/matchers/have_entry.rb
serverspec-0.4.13 lib/serverspec/matchers/have_entry.rb
serverspec-0.4.12 lib/serverspec/matchers/have_entry.rb
serverspec-0.4.11 lib/serverspec/matchers/have_entry.rb
serverspec-0.4.10 lib/serverspec/matchers/have_entry.rb
serverspec-0.4.9 lib/serverspec/matchers/have_entry.rb
serverspec-0.4.8 lib/serverspec/matchers/have_entry.rb
serverspec-0.4.7 lib/serverspec/matchers/have_entry.rb
serverspec-0.4.6 lib/serverspec/matchers/have_entry.rb
serverspec-0.4.5 lib/serverspec/matchers/have_entry.rb
serverspec-0.4.4 lib/serverspec/matchers/have_entry.rb
serverspec-0.4.3 lib/serverspec/matchers/have_entry.rb