Sha256: 353a480be329475e5730cb315d8aa7aca95c7b96319d2f19935da64479608f19

Contents?: true

Size: 219 Bytes

Versions: 97

Compression:

Stored size: 219 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

97 entries across 97 versions & 1 rubygems

Version Path
serverspec-0.6.17 lib/serverspec/matchers/be_readable.rb
serverspec-0.6.16 lib/serverspec/matchers/be_readable.rb
serverspec-0.6.15 lib/serverspec/matchers/be_readable.rb
serverspec-0.6.13 lib/serverspec/matchers/be_readable.rb
serverspec-0.6.12 lib/serverspec/matchers/be_readable.rb
serverspec-0.6.11 lib/serverspec/matchers/be_readable.rb
serverspec-0.6.10 lib/serverspec/matchers/be_readable.rb
serverspec-0.6.9 lib/serverspec/matchers/be_readable.rb
serverspec-0.6.8 lib/serverspec/matchers/be_readable.rb
serverspec-0.6.7 lib/serverspec/matchers/be_readable.rb
serverspec-0.6.6 lib/serverspec/matchers/be_readable.rb
serverspec-0.6.5 lib/serverspec/matchers/be_readable.rb
serverspec-0.6.4 lib/serverspec/matchers/be_readable.rb
serverspec-0.6.3 lib/serverspec/matchers/be_readable.rb
serverspec-0.6.2 lib/serverspec/matchers/be_readable.rb
serverspec-0.6.1 lib/serverspec/matchers/be_readable.rb
serverspec-0.6.0 lib/serverspec/matchers/be_readable.rb