mongoid / mongoid-rspec

RSpec matchers and macros for Mongoid.
MIT License
498 stars 177 forks source link

Doesn't work with Mongoid 7 #207

Closed stanley90 closed 6 years ago

stanley90 commented 6 years ago

lib/mongoid/relations no longer exists in Mongoid 7

LoadError:
  cannot load such file -- mongoid/relations
# /Users/stanley/.rvm/gems/ruby-2.5.0@redclover/gems/mongoid-rspec-4.0.0/lib/matchers/associations.rb:1:in `require'
# /Users/stanley/.rvm/gems/ruby-2.5.0@redclover/gems/mongoid-rspec-4.0.0/lib/matchers/associations.rb:1:in `<top (required)>'
# /Users/stanley/.rvm/gems/ruby-2.5.0@redclover/gems/mongoid-rspec-4.0.0/lib/mongoid/rspec.rb:13:in `require'
# /Users/stanley/.rvm/gems/ruby-2.5.0@redclover/gems/mongoid-rspec-4.0.0/lib/mongoid/rspec.rb:13:in `<top (required)>'
# /Users/stanley/.rvm/gems/ruby-2.5.0@redclover/gems/mongoid-rspec-4.0.0/lib/mongoid-rspec.rb:1:in `require'
# /Users/stanley/.rvm/gems/ruby-2.5.0@redclover/gems/mongoid-rspec-4.0.0/lib/mongoid-rspec.rb:1:in `<top (required)>'
dblock commented 6 years ago

Looks like beta 7 has been released. Would be helpful to see a PR with travis using it and maybe a fix for the issue above.

Simbul commented 6 years ago

Mongoid 7 has been released on March 12th, so this bug is not against a beta version anymore. Is there any plan to fix it? I'd love to do it myself, but I don't know mongoid-rspec well enough to contribute, unfortunately.

dblock commented 6 years ago

There's no plan. Someone needs to contribute a PR for this, please. If you want to help, start by adding mongoid7 to .travis.yml and producing a failing build in a PR, that should help actually implement what's missing.

dblock commented 6 years ago

Btw, I don't use this project, but am happy to do it this weekend if someone wants to contribute $100 to my charity. Verbal hand-shake would be enough for me ;)

dblock commented 6 years ago

Closed via https://github.com/mongoid/mongoid-rspec/pull/212#event-1566707765.