Sha256: e64b3ef41c57340ef7e36e6d8437d52c33c5e0847a4e76502ba3260111f99848

Contents?: true

Size: 235 Bytes

Versions: 15

Compression:

Stored size: 235 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(example, user, key)
    end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

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