When the expected return value from #to_h (which is defined in the test/data/*.yml files) doesn't match the actual return value the error message gets things backwards.
Here I've not got anything in the test file, but the output (wrongly) suggests there was nothing returned from #to_h.
Proposed solution
Reverse the order of arguments to assert_equals when checking expected vs actual #to_h values.
Problem
When the expected return value from
#to_h
(which is defined in thetest/data/*.yml
files) doesn't match the actual return value the error message gets things backwards.Here I've not got anything in the test file, but the output (wrongly) suggests there was nothing returned from
#to_h
.Proposed solution
Reverse the order of arguments to
assert_equals
when checking expected vs actual#to_h
values.