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

Version Path
sshkit-1.23.2 test/unit/runners/test_sequential.rb
sshkit-1.23.1 test/unit/runners/test_sequential.rb
sshkit-1.23.0 test/unit/runners/test_sequential.rb
sshkit-1.22.2 test/unit/runners/test_sequential.rb
sshkit-1.22.1 test/unit/runners/test_sequential.rb
sshkit-1.22.0 test/unit/runners/test_sequential.rb
sshkit-1.21.7 test/unit/runners/test_sequential.rb
honeybadger-5.4.0 vendor/bundle/ruby/3.2.0/gems/sshkit-1.21.6/test/unit/runners/test_sequential.rb
sshkit-1.21.6 test/unit/runners/test_sequential.rb
honeybadger-5.3.0 vendor/bundle/ruby/3.2.0/gems/sshkit-1.21.5/test/unit/runners/test_sequential.rb
sshkit-1.21.5 test/unit/runners/test_sequential.rb
sshkit-1.21.4 test/unit/runners/test_sequential.rb
sshkit-1.21.3 test/unit/runners/test_sequential.rb
sshkit-1.21.2 test/unit/runners/test_sequential.rb
sshkit-1.21.1 test/unit/runners/test_sequential.rb
sshkit-1.21.0 test/unit/runners/test_sequential.rb
honeybadger-4.5.3 vendor/bundle/ruby/2.6.0/gems/sshkit-1.18.2/test/unit/runners/test_sequential.rb
sshkit-1.20.0 test/unit/runners/test_sequential.rb
sshkit-1.19.1 test/unit/runners/test_sequential.rb
sshkit-1.19.0 test/unit/runners/test_sequential.rb