Sha256: b2b3ad9a1768fbbb536e00ff1d4c8ca04beab06b98e51c8d0edb19e65de279d7

Contents?: true

Size: 226 Bytes

Versions: 5

Compression:

Stored size: 226 Bytes

Contents

RSpec::Matchers.define :belong_to_group do |group|
  match do |user|
    if user.respond_to?(:belongs_to_group?)
      user.belongs_to_group?(group)
    else
      backend.check_belonging_group(user, group)
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

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