Sha256: 9dbb4c275a6b167ed90a7177d3e1d66660ab3548409a9bf37ef8b342e430684d

Contents?: true

Size: 183 Bytes

Versions: 5

Compression:

Stored size: 183 Bytes

Contents

RSpec::Matchers.define :have_uid do |uid|
  match do |user|
    if user.respond_to?(:has_uid?)
      user.has_uid?(uid)
    else
      backend.check_uid(user, uid)
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

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