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