This is a bug in the latest version of shoulda-matchers. We are working to fix it, but in the meantime, please use version 2.5.0.
Can I use shoulda with mongoid?
-
06-07-2023 - |
Question
I want to use shoulda with mongoid, but I am getting this error:
NameError: uninitialized constant Shoulda::Matchers::ActiveRecord
I am using mongoid, though. Is it possible to use shoulda with MiniTest and mongoid? Here's my Gemfile:
gem 'rails', '4.0.2'
gem 'mongoid', '~> 4.0.0.beta1', github: 'mongoid/mongoid'
gem 'bson_ext'
group :test do
gem 'shoulda'
end
Solution
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow