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.0.0.beta10 lib/serverspec/matchers/be_writable.rb
serverspec-2.0.0.beta9 lib/serverspec/matchers/be_writable.rb
serverspec-1.10.0 lib/serverspec/matchers/be_writable.rb
serverspec-2.0.0.beta8 lib/serverspec/matchers/be_writable.rb
serverspec-2.0.0.beta7 lib/serverspec/matchers/be_writable.rb
serverspec-1.9.1 lib/serverspec/matchers/be_writable.rb
serverspec-1.9.0 lib/serverspec/matchers/be_writable.rb
serverspec-1.8.0 lib/serverspec/matchers/be_writable.rb
serverspec-2.0.0.beta6 lib/serverspec/matchers/be_writable.rb
serverspec-1.7.1 lib/serverspec/matchers/be_writable.rb
serverspec-2.0.0.beta5 lib/serverspec/matchers/be_writable.rb
serverspec-2.0.0.beta4 lib/serverspec/matchers/be_writable.rb
serverspec-1.7.0 lib/serverspec/matchers/be_writable.rb
serverspec-2.0.0.beta3 lib/serverspec/matchers/be_writable.rb
serverspec-1.6.0 lib/serverspec/matchers/be_writable.rb
serverspec-1.5.0 lib/serverspec/matchers/be_writable.rb
serverspec-2.0.0.beta2 lib/serverspec/matchers/be_writable.rb
serverspec-1.4.2 lib/serverspec/matchers/be_writable.rb
serverspec-2.0.0.beta1 lib/serverspec/matchers/be_writable.rb
serverspec-1.4.1 lib/serverspec/matchers/be_writable.rb