Sha256: e742f102893a2d96734912cdf0f50dfe283370573e319d516e4544b43655447f

Contents?: true

Size: 286 Bytes

Versions: 9

Compression:

Stored size: 286 Bytes

Contents

require 'rspec/expectations'

RSpec::Matchers.define :execute_successfully do
    match do |cmd|
        @cmd_last_output = `#{cmd} 2>&1`
         $?.exitstatus == 0
    end
    description do
        "Command exited with #{$?.exitstatus}.  Output was: #{@cmd_last_output}"
    end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
hippo-fw-0.9.9 spec/server/assertions.rb
hippo-fw-0.9.8 spec/server/assertions.rb
hippo-fw-0.9.7 spec/server/assertions.rb
hippo-fw-0.9.6 spec/server/assertions.rb
hippo-fw-0.9.5 spec/server/assertions.rb
hippo-fw-0.9.4 spec/server/assertions.rb
hippo-fw-0.9.3 spec/server/assertions.rb
hippo-fw-0.9.2 spec/server/assertions.rb
hippo-fw-0.9.1 spec/server/assertions.rb