test/unit/backends/test_abstract.rb in sshkit-1.17.0 vs test/unit/backends/test_abstract.rb in sshkit-1.18.0

- old
+ new

@@ -38,18 +38,26 @@ {:raise_on_non_zero_exit=>true, :run_in_background=>false, :in=>nil, :env=>nil, :host=>ExampleBackend.example_host, :user=>nil, :group=>nil}, backend.executed_command.options ) end - def test_test_method_creates_and_executes_command_with_false_raise_on_non_zero_exit + def test_test_creates_and_executes_command_with_false_raise_on_non_zero_exit backend = ExampleBackend.new do test '[ -d /some/file ]' end backend.run assert_equal '[ -d /some/file ]', backend.executed_command.to_command assert_equal false, backend.executed_command.options[:raise_on_non_zero_exit], 'raise_on_non_zero_exit option' + end + + def test_test_allows_to_override_verbosity + backend = ExampleBackend.new do + test 'echo output', {verbosity: Logger::INFO} + end + backend.run + assert_equal(backend.executed_command.options[:verbosity], Logger::INFO) end def test_capture_creates_and_executes_command_and_returns_stripped_output output = nil backend = ExampleBackend.new do