Sha256: 93de9d73d92e0b6f9f0d7ed6249d46162606e70fc94fea6db0a2bcf6ba298754

Contents?: true

Size: 162 Bytes

Versions: 14

Compression:

Stored size: 162 Bytes

Contents

RSpec::Matchers.define :return_exit_status do |status|
  match do |command|
    ret = backend.run_command(command)
    ret[:exit_status].to_i == status
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
serverspec-0.4.1 lib/serverspec/matchers/return_exit_status.rb
serverspec-0.4.0 lib/serverspec/matchers/return_exit_status.rb
serverspec-0.3.2 lib/serverspec/matchers/return_exit_status.rb
serverspec-0.3.1 lib/serverspec/matchers/return_exit_status.rb
serverspec-0.3.0 lib/serverspec/matchers/return_exit_status.rb
serverspec-0.2.28 lib/serverspec/matchers/return_exit_status.rb
serverspec-0.2.27 lib/serverspec/matchers/return_exit_status.rb
serverspec-0.2.26 lib/serverspec/matchers/return_exit_status.rb
serverspec-0.2.25 lib/serverspec/matchers/return_exit_status.rb
serverspec-0.2.24 lib/serverspec/matchers/return_exit_status.rb
serverspec-0.2.23 lib/serverspec/matchers/return_exit_status.rb
serverspec-0.2.22 lib/serverspec/matchers/return_exit_status.rb
serverspec-0.2.21 lib/serverspec/matchers/return_exit_status.rb
serverspec-0.2.20 lib/serverspec/matchers/return_exit_status.rb