Closed kivanio closed 1 year ago
@kivanio hey! can't really reproduce it in a new app. Could you please send simple application that reproduces it so I can take a look? Thanks!
@nashby here is a fresh app with the issue. https://github.com/kivanio/enumerize-test-app
I can not even run the migrations:
➜ enumerize-test-app (main) ✗ bin/rails db:migrate RAILS_ENV=test
rails aborted!
NoMethodError: undefined method `define' for RSpec::Matchers:Module
<internal:/Users/kivanio/.rbenv/versions/3.2.1/lib/ruby/site_ruby/3.2.0/rubygems/core_ext/kernel_require.rb>:37:in `require'
<internal:/Users/kivanio/.rbenv/versions/3.2.1/lib/ruby/site_ruby/3.2.0/rubygems/core_ext/kernel_require.rb>:37:in `require'
/Users/kivanio/projetos/kivanio/enumerize-test-app/config/application.rb:7:in `<main>'
/Users/kivanio/projetos/kivanio/enumerize-test-app/Rakefile:4:in `require_relative'
/Users/kivanio/projetos/kivanio/enumerize-test-app/Rakefile:4:in `<main>'
<internal:/Users/kivanio/.rbenv/versions/3.2.1/lib/ruby/site_ruby/3.2.0/rubygems/core_ext/kernel_require.rb>:37:in `require'
<internal:/Users/kivanio/.rbenv/versions/3.2.1/lib/ruby/site_ruby/3.2.0/rubygems/core_ext/kernel_require.rb>:37:in `require'
bin/rails:4:in `<main>'
(See full trace by running task with --trace)
@kivanio thanks! Could you please test master branch and report back? It should be fixed.
@nashby It works at the test app. Thank you 👍🏻
2.6.1 has been released with a fix!
The new version conflict/raise errors when used with: https://github.com/nepalez/rspec-sqlimit
Probably because this change:https://github.com/brainspec/enumerize/commit/28dd2247ec03ef9a7e74266060d443ed8df1c2b4
But It looks weird at first look It seems that should not happen 🤔
Downgrade to 2.5.0 fix the loading.