Skip to content

Error when rspec loads files using Refinements #3820

@estolfo

Description

@estolfo

Summary

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.

If I put the line "using Refinements" after the culprit line, it will load with no errors.

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.

Environment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions