Sha256: c5bf0fae0a2df07fb8dbb9edd32ecba2c29dbf2b0eecf71bf3add3a416a3482d
Contents?: true
Size: 389 Bytes
Versions: 82
Compression:
Stored size: 389 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_for_should 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
82 entries across 29 versions & 2 rubygems