Sha256: 29bfcd324dbb3a574af101f41b293b5d3472e71df6d184c4401de0cbe4d4de0d
Contents?: true
Size: 378 Bytes
Versions: 14
Compression:
Stored size: 378 Bytes
Contents
# This verifies that the given subprocess command exits with the right code. RSpec::Matchers.define :exit_with do |code| match do |actual| actual.exit_code == code end failure_message do |actual| "expected command to exit with #{code} but got exit code: #{actual.exit_code}\n\n" + "stdout: #{actual.stdout}\n\n" + "stderr: #{actual.stderr}" end end
Version data entries
14 entries across 5 versions & 1 rubygems