Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unexpected test-unit behavior with facets #285

Open
jessebs opened this issue Feb 22, 2019 · 1 comment
Open

Unexpected test-unit behavior with facets #285

jessebs opened this issue Feb 22, 2019 · 1 comment

Comments

@jessebs
Copy link

jessebs commented Feb 22, 2019

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

@GregLawson
Copy link

require 'facets/symbol/call.rb'
by itself will cause this error. See call method

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants