test/unit/backends/test_abstract.rb in sshkit-1.23.1 vs test/unit/backends/test_abstract.rb in sshkit-1.23.2
- old
+ new
@@ -110,10 +110,15 @@
assert_equal 'cd ~/foo && /usr/bin/env cat file', backend.executed_command.to_command
end
def test_background_logs_deprecation_warnings
- deprecation_out = ''
+ deprecation_out =
+ if RUBY_VERSION < "2.3"
+ ''
+ else
+ +''
+ end
SSHKit.config.deprecation_output = deprecation_out
ExampleBackend.new do
background :ls
end.run