Requiring facets in test-unit unit tests causes invalid assertions to pass.
See the below code reference
require 'test/unit'
require 'facets'
class TestExample < Test::Unit::TestCase
def test_hash
assert_equal({'name' => 'left'}, {'name' => 'right'})
end
end
The assertion passes even though the hashes are not equal. Commenting out the require for facets makes the assertion behave as expected.
Using test-unit 3.3.0 and facets 3.1.0
Requiring facets in test-unit unit tests causes invalid assertions to pass.
See the below code reference
The assertion passes even though the hashes are not equal. Commenting out the require for facets makes the assertion behave as expected.
Using test-unit 3.3.0 and facets 3.1.0