Skip to content

Commit

Permalink
🔀 Merge pull request #281 from nevans/nicer-response_paser-test-failures
Browse files Browse the repository at this point in the history
🔍 Simplify handling of ResponseParser test failures
  • Loading branch information
nevans authored May 19, 2024
2 parents 80c8964 + dfe163d commit 60b46e0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/net/imap/net_imap_test_helpers.rb
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,9 @@ def generate_tests_from(fixture_data: nil, fixture_file: nil)
actual = parser.parse response
binding.irb if debug
assert_equal expected, actual
rescue Test::Unit::AssertionFailedError
puts YAML.dump name => {response: response, expected: actual}
raise
end
end

Expand Down

0 comments on commit 60b46e0

Please sign in to comment.