Sha256: 6bd4f7988fb2fd0968125393de5bfc19f54fc69784a31bc318f63a5f9c067f46
Contents?: true
Size: 492 Bytes
Versions: 31
Compression:
Stored size: 492 Bytes
Contents
require "helper" require "sshkit" module SSHKit module Runner class TestSequential < UnitTest def test_wraps_ruby_standard_error_in_execute_error host = Host.new("deployer@example") runner = Sequential.new([host]) { raise "oh no!" } error = assert_raises(SSHKit::Runner::ExecuteError) do runner.execute end assert_match(/deployer@example/, error.message) assert_match(/oh no!/, error.message) end end end end
Version data entries
31 entries across 31 versions & 2 rubygems