Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Error when rspec loads files using Refinements #3820
Mongoid has supported JRuby until now but I've run into some issues when refactoring Mongoid to use Refinements instead of monkey-patching core classes.
The Refinements branch in Mongoid is here.
I believe I'm seeing the same issue as this one.
It seems that a problem is encountered when files are loaded by rspec. The line throwing the error is here.
Let me know if I can help with debugging. If you would like to test, you can clone the Mongoid repo, check out the 6.0.0-refinements branch, start mongod on the default host/port (localhost:27017), run bundle, and then rspec.
I believe this will be fixed, but I'm not sure if things run properly. You'll see a commit for 9.1 shortly, and if you have a chance to test a 9.1 snapshot before we release next week it would be a great help.
If there's still outstanding issues that aren't the arity/block error, file a new issue and we'll look at it for 9.1.1.