Sha256: 68ed42f9caaa78167e4d3c8fd9ac0e8fa1ac7241532501b20f37d4925bc698c5

Contents?: true

Size: 226 Bytes

Versions: 5

Compression:

Stored size: 226 Bytes

Contents

RSpec::Matchers.define :have_authorized_key do |key|
  match do |user|
    if user.respond_to?(:has_authorized_key?)
      user.has_authorized_key?(key)
    else
      backend.check_authorized_key(user, key)
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
serverspec-0.5.8 lib/serverspec/matchers/have_authorized_key.rb
serverspec-0.5.7 lib/serverspec/matchers/have_authorized_key.rb
serverspec-0.5.6 lib/serverspec/matchers/have_authorized_key.rb
serverspec-0.5.5 lib/serverspec/matchers/have_authorized_key.rb
serverspec-0.5.4 lib/serverspec/matchers/have_authorized_key.rb