Possible regression in JRuby v9.4.0.0 · Issue #7492 · jruby/jruby (original) (raw)

The Mocha test suite passes.

  1) Failure:
KeywordArgumentMatchingTest#test_should_match_hash_parameter_with_keyword_args [/root/project/test/acceptance/keyword_argument_matching_test.rb:32]:
Test failed unexpectedly with message: [#<MinitestResult::Failure:0x36c54a56 @failure=#<Minitest::Assertion: Expected "Expectation defined at /root/project/test/acceptance/keyword_argument_matching_test.rb:22:in `block in test_me' expected keyword arguments (:key => 42), but received positional hash ({:key => 42}). These will stop matching when strict keyword argument matching is enabled. See the documentation for Mocha::Configuration#strict_keyword_argument_matching=." to include "Expectation defined at /root/project/test/acceptance/keyword_argument_matching_test.rb:22:in `block in test_should_match_hash_parameter_with_keyword_args' expected keyword arguments (:key => 42)".>>]

  2) Failure:
KeywordArgumentMatchingTest#test_should_match_hash_parameter_with_splatted_keyword_args [/root/project/test/acceptance/keyword_argument_matching_test.rb:62]:
Test failed unexpectedly with message: [#<MinitestResult::Failure:0x15fc442 @failure=#<Minitest::Assertion: Expected "Expectation defined at /root/project/test/acceptance/keyword_argument_matching_test.rb:52:in `block in test_me' expected keyword arguments (:key => 42), but received positional hash ({:key => 42}). These will stop matching when strict keyword argument matching is enabled. See the documentation for Mocha::Configuration#strict_keyword_argument_matching=." to include "Expectation defined at /root/project/test/acceptance/keyword_argument_matching_test.rb:52:in `block in test_should_match_hash_parameter_with_splatted_keyword_args' expected keyword arguments (:key => 42)".>>]

  3) Failure:
KeywordArgumentMatchingTest#test_should_match_positional_and_keyword_args_with_last_positional_hash [/root/project/test/acceptance/keyword_argument_matching_test.rb:110]:
Test failed unexpectedly with message: [#<MinitestResult::Failure:0x11ce2e22 @failure=#<Minitest::Assertion: Expected "Expectation defined at /root/project/test/acceptance/keyword_argument_matching_test.rb💯in `block in test_me' expected positional hash ({:key => 42}), but received keyword arguments (:key => 42). These will stop matching when strict keyword argument matching is enabled. See the documentation for Mocha::Configuration#strict_keyword_argument_matching=." to include "Expectation defined at /root/project/test/acceptance/keyword_argument_matching_test.rb💯in `block in test_should_match_positional_and_keyword_args_with_last_positional_hash' expected positional hash ({:key => 42})".>>]

  4) Failure:
KeywordArgumentMatchingTest#test_should_match_last_positional_hash_with_keyword_args [/root/project/test/acceptance/keyword_argument_matching_test.rb:140]:
Test failed unexpectedly with message: [#<MinitestResult::Failure:0x6f95cd51 @failure=#<Minitest::Assertion: Expected "Expectation defined at /root/project/test/acceptance/keyword_argument_matching_test.rb:130:in `block in test_me' expected keyword arguments (:key => 42), but received positional hash ({:key => 42}). These will stop matching when strict keyword argument matching is enabled. See the documentation for Mocha::Configuration#strict_keyword_argument_matching=." to include "Expectation defined at /root/project/test/acceptance/keyword_argument_matching_test.rb:130:in `block in test_should_match_last_positional_hash_with_keyword_args' expected keyword arguments (:key => 42)".>>]

I'm pretty confident these were passing before the JRuby version bump from v9.3.9.0 -> v9.4.0.0. I haven't had time to work out whether something is wrong with the Mocha implementation, but I wanted to give you an early heads-up that something might be amiss with JRuby.