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

Test failures with Ruby 3.0 #35

Open
dleidert opened this issue Nov 24, 2021 · 1 comment
Open

Test failures with Ruby 3.0 #35

dleidert opened this issue Nov 24, 2021 · 1 comment

Comments

@dleidert
Copy link

We see these test failures with Ruby 3.0

Finished in 0.617611s, 422.5960 runs/s, 2833.4978 assertions/s.

  1) Failure:
MetamodelFromEcoreTest#test_has_attr [/<<PKGBUILDDIR>>/test/metamodel_builder_test.rb:229]:
Expected /In (\w+::)+SimpleClass : Can not use a Symbol\(:someSymbol\) where a \[true,false\] is expected/ to match "In MetamodelFromEcoreTest::MetamodelFromEcore::SimpleClass : Can not use a Symbol(someSymbol)(:someSymbol) where a [true,false] is expected".

  2) Failure:
MetamodelFromEcoreTest#test_many_to_many [/<<PKGBUILDDIR>>/test/metamodel_builder_test.rb:619]:
Expected /In (\w+::)+BClassMM : Can not use a Symbol\(:notaaclass\) where a (\w+::)+AClassMM is expected/ to match "In MetamodelFromEcoreTest::MetamodelFromEcore::BClassMM : Can not use a Symbol(notaaclass)(:notaaclass) where a MetamodelFromEcoreTest::MetamodelFromEcore::AClassMM is expected".

  3) Failure:
MetamodelBuilderTest#test_many_to_many [/<<PKGBUILDDIR>>/test/metamodel_builder_test.rb:619]:
Expected /In (\w+::)+BClassMM : Can not use a Symbol\(:notaaclass\) where a (\w+::)+AClassMM is expected/ to match "In MetamodelBuilderTest::TestMetamodel::BClassMM : Can not use a Symbol(notaaclass)(:notaaclass) where a MetamodelBuilderTest::TestMetamodel::AClassMM is expected".

  4) Failure:
MetamodelBuilderTest#test_has_attr [/<<PKGBUILDDIR>>/test/metamodel_builder_test.rb:229]:
Expected /In (\w+::)+SimpleClass : Can not use a Symbol\(:someSymbol\) where a \[true,false\] is expected/ to match "In MetamodelBuilderTest::TestMetamodel::SimpleClass : Can not use a Symbol(someSymbol)(:someSymbol) where a [true,false] is expected".

261 runs, 1750 assertions, 4 failures, 0 errors, 0 skips
ERROR: Test "ruby3.0" failed. Exiting.
@dleidert
Copy link
Author

dleidert commented Nov 24, 2021

In Ruby 3.0 the Symbol class got a name method: https://ruby-doc.org/core-3.0.0/Symbol.html#method-i-name

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

1 participant