Sha256: 31b5dee37e48b35daea481a709b0d316f962f74c00c7c483658b6470361f5efc

Contents?: true

Size: 195 Bytes

Versions: 5

Compression:

Stored size: 195 Bytes

Contents

RSpec::Matchers.define :be_owned_by do |owner|
  match do |file|
    if file.respond_to?(:owned_by?)
      file.owned_by?(owner)
    else
      backend.check_owner(file, owner)
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

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