Sha256: 58b9061f7a768c1475684b8f2acfb2e1939f6e477ec2dfde02ea665e41c0d3a7

Contents?: true

Size: 221 Bytes

Versions: 124

Compression:

Stored size: 221 Bytes

Contents

RSpec::Matchers.define :be_readable do
  match do |file|
    file.readable?(@by_whom, @by_user)
  end

  chain :by do |by_whom|
    @by_whom = by_whom
  end

  chain :by_user do |by_user|
    @by_user = by_user
  end
end

Version data entries

124 entries across 124 versions & 4 rubygems

Version Path
serverspec-2.38.0 lib/serverspec/matcher/be_readable.rb
serverspec-2.37.2 lib/serverspec/matcher/be_readable.rb
serverspec-2.37.1 lib/serverspec/matcher/be_readable.rb
serverspec-2.37.0 lib/serverspec/matcher/be_readable.rb
serverspec-2.36.1 lib/serverspec/matcher/be_readable.rb
serverspec-2.36.0 lib/serverspec/matcher/be_readable.rb
serverspec-2.35.0 lib/serverspec/matcher/be_readable.rb
serverspec-2.34.0 lib/serverspec/matcher/be_readable.rb
serverspec-2.33.0 lib/serverspec/matcher/be_readable.rb
serverspec-2.32.0 lib/serverspec/matcher/be_readable.rb
serverspec-2.31.1 lib/serverspec/matcher/be_readable.rb
serverspec-2.31.0 lib/serverspec/matcher/be_readable.rb
serverspec-2.30.1 lib/serverspec/matcher/be_readable.rb
serverspec-2.30.0 lib/serverspec/matcher/be_readable.rb
serverspec-2.29.2 lib/serverspec/matcher/be_readable.rb
serverspec-2.29.1 lib/serverspec/matcher/be_readable.rb
serverspec-2.29.0 lib/serverspec/matcher/be_readable.rb
serverspec-2.28.0 lib/serverspec/matcher/be_readable.rb
serverspec-2.27.0 lib/serverspec/matcher/be_readable.rb
serverspec-2.26.0 lib/serverspec/matcher/be_readable.rb