1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88
|
Description: Disable tests that require turn.
Turn is not yet packaged.
Author: Sebastien Badia <seb@sebian.fr>
Forwarded: not-needed
Last-Update: 2015-05-04
Index: ruby-sshkit/test/unit/formatters/test_pretty.rb
===================================================================
--- ruby-sshkit.orig/test/unit/formatters/test_pretty.rb
+++ ruby-sshkit/test/unit/formatters/test_pretty.rb
@@ -65,11 +65,6 @@ module SSHKit
assert_log_output " INFO some spaces\n"
end
- def test_can_log_non_strings
- pretty.log(Pathname.new('/var/log/my.log'))
- assert_log_output " INFO /var/log/my.log\n"
- end
-
def test_command_lifecycle_logging_without_color
simulate_command_lifecycle(pretty)
@@ -84,13 +79,6 @@ module SSHKit
assert_equal expected_log_lines, output.split("\n")
end
- def test_unsupported_class
- raised_error = assert_raises RuntimeError do
- pretty << Pathname.new('/tmp')
- end
- assert_equal('write only supports formatting SSHKit::LogMessage, called with Pathname: #<Pathname:/tmp>', raised_error.message)
- end
-
def test_does_not_log_message_when_verbosity_is_too_low
SSHKit.config.output_verbosity = Logger::WARN
pretty.info('Some info')
Index: ruby-sshkit/test/unit/formatters/test_simple_text.rb
===================================================================
--- ruby-sshkit.orig/test/unit/formatters/test_simple_text.rb
+++ ruby-sshkit/test/unit/formatters/test_simple_text.rb
@@ -28,11 +28,6 @@ module SSHKit
assert_log_output "some spaces\n"
end
- def test_can_log_non_strings
- simple.log(Pathname.new('/var/log/my.log'))
- assert_log_output "/var/log/my.log\n"
- end
-
def test_command_lifecycle_logging
command = SSHKit::Command.new(:a_cmd, 'some args', host: Host.new('user@localhost'))
command.stubs(:uuid).returns('aaaaaa')
@@ -57,13 +52,6 @@ module SSHKit
assert_equal expected_log_lines, output.split("\n")
end
- def test_unsupported_class
- raised_error = assert_raises RuntimeError do
- simple << Pathname.new('/tmp')
- end
- assert_equal('write only supports formatting SSHKit::LogMessage, called with Pathname: #<Pathname:/tmp>', raised_error.message)
- end
-
def test_does_not_log_when_verbosity_is_too_low
SSHKit.config.output_verbosity = Logger::WARN
simple.info('Some info')
Index: ruby-sshkit/test/unit/test_deprecation_logger.rb
===================================================================
--- ruby-sshkit.orig/test/unit/test_deprecation_logger.rb
+++ ruby-sshkit/test/unit/test_deprecation_logger.rb
@@ -12,17 +12,6 @@ module SSHKit
@logger ||= DeprecationLogger.new(output)
end
- def test_hides_duplicate_deprecation_warnings
- line_number = generate_warning
- generate_warning
-
- actual_lines = output.lines.to_a
-
- assert_equal(2, actual_lines.size)
- assert_equal "[Deprecated] Some message\n", actual_lines[0]
- assert_match %r{ \(Called from .*sshkit/test/unit/test_deprecation_logger.rb:#{line_number}:in `generate_warning'\)\n}, actual_lines[1]
- end
-
def test_handles_nil_output
DeprecationLogger.new(nil).log('Some message')
end
|