Sha256: 6d26ad0e1e67cb764dd883b76574e314e6f2ff2a5db0f82f52f6f672c9d3933c

Contents?: true

Size: 253 Bytes

Versions: 16

Compression:

Stored size: 253 Bytes

Contents

RSpec::Matchers.define :be_resolvable do
  match do |name|
    if name.respond_to?(:resolvable?)
      name.resolvable?(@type)
    else
      backend.check_resolvable(example, name, @type)
    end
  end
  chain :by do |type|
    @type = type
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

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