Skip to content

Commit

Permalink
Fix failing tests on ruby head
Browse files Browse the repository at this point in the history
  • Loading branch information
mattbrictson committed Apr 1, 2024
1 parent 7cc01ef commit d208139
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion test/unit/backends/test_abstract.rb
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ def test_background_logs_deprecation_warnings
assert_equal 2, lines.length

assert_equal("[Deprecated] The background method is deprecated. Blame badly behaved pseudo-daemons!\n", lines[0])
assert_match(/ \(Called from.*test_abstract.rb:\d+:in `block in test_background_logs_deprecation_warnings'\)\n/, lines[1])
assert_match(/ \(Called from.*test_abstract.rb:\d+:in .block in .*test_background_logs_deprecation_warnings.\)\n/, lines[1])
end

def test_calling_abstract_with_undefined_execute_command_raises_exception
Expand Down
2 changes: 1 addition & 1 deletion test/unit/test_deprecation_logger.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def test_hides_duplicate_deprecation_warnings

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]
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
Expand Down

0 comments on commit d208139

Please sign in to comment.