Sha256: 090afc41dc0c6b5f1ea501de574d4f6efb973e53bc1050f840502bff2122d9b5

Contents?: true

Size: 225 Bytes

Versions: 124

Compression:

Stored size: 225 Bytes

Contents

RSpec::Matchers.define :be_executable do
  match do |file|
    file.executable?(@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.1.0 lib/serverspec/matcher/be_executable.rb
serverspec-2.0.1 lib/serverspec/matcher/be_executable.rb
serverspec-2.0.0 lib/serverspec/matcher/be_executable.rb
serverspec-2.0.0.beta21 lib/serverspec/matcher/be_executable.rb
serverspec-1.16.0 lib/serverspec/matchers/be_executable.rb
serverspec-1.15.0 lib/serverspec/matchers/be_executable.rb
serverspec-2.0.0.beta20 lib/serverspec/matcher/be_executable.rb
serverspec-2.0.0.beta19 lib/serverspec/matcher/be_executable.rb
serverspec-2.0.0.beta18 lib/serverspec/matcher/be_executable.rb
serverspec-2.0.0.beta17 lib/serverspec/matcher/be_executable.rb
serverspec-1.14.0 lib/serverspec/matchers/be_executable.rb
serverspec-1.13.0 lib/serverspec/matchers/be_executable.rb
serverspec-1.12.0 lib/serverspec/matchers/be_executable.rb
serverspec-2.0.0.beta16 lib/serverspec/matchers/be_executable.rb
serverspec-2.0.0.beta15 lib/serverspec/matchers/be_executable.rb
serverspec-2.0.0.beta14 lib/serverspec/matchers/be_executable.rb
serverspec-2.0.0.beta13 lib/serverspec/matchers/be_executable.rb
serverspec-2.0.0.beta12 lib/serverspec/matchers/be_executable.rb
serverspec-2.0.0.beta11 lib/serverspec/matchers/be_executable.rb
serverspec-1.11.0 lib/serverspec/matchers/be_executable.rb