Sha256: 32f309d45c7266d3598c2eb74a997976e4a24f037bf6fc91cd0b50da2a82ac4f

Contents?: true

Size: 221 Bytes

Versions: 124

Compression:

Stored size: 221 Bytes

Contents

RSpec::Matchers.define :be_writable do
  match do |file|
    file.writable?(@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.25.0 lib/serverspec/matcher/be_writable.rb
serverspec-2.24.3 lib/serverspec/matcher/be_writable.rb
serverspec-2.24.2 lib/serverspec/matcher/be_writable.rb
serverspec-2.24.1 lib/serverspec/matcher/be_writable.rb
serverspec-2.24.0 lib/serverspec/matcher/be_writable.rb
serverspec-2.23.1 lib/serverspec/matcher/be_writable.rb
serverspec-2.23.0 lib/serverspec/matcher/be_writable.rb
serverspec-2.22.0 lib/serverspec/matcher/be_writable.rb
serverspec-2.21.1 lib/serverspec/matcher/be_writable.rb
serverspec-2.21.0 lib/serverspec/matcher/be_writable.rb
serverspec-2.20.0 lib/serverspec/matcher/be_writable.rb
serverspec-2.19.0 lib/serverspec/matcher/be_writable.rb
serverspec-2.18.0 lib/serverspec/matcher/be_writable.rb
serverspec-2.17.1 lib/serverspec/matcher/be_writable.rb
serverspec-2.17.0 lib/serverspec/matcher/be_writable.rb
serverspec-2.16.0 lib/serverspec/matcher/be_writable.rb
serverspec-2.15.0 lib/serverspec/matcher/be_writable.rb
serverspec-2.14.1 lib/serverspec/matcher/be_writable.rb
serverspec-2.14.0 lib/serverspec/matcher/be_writable.rb
serverspec-2.13.0 lib/serverspec/matcher/be_writable.rb