We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hello, I am getting error mentioned above:
Failure/Error: it { is_expected.to validate_uniqueness_of(:name) } NoMethodError: undefined method `validate_uniqueness_of' for #<RSpec::ExampleGroups::Word:0x007fe6c59525a0>
mongoid-5.0.0 mongoid-rspec-3.0.0
The text was updated successfully, but these errors were encountered:
Hi @spurnaye. Could you show your spec_helper.rb and, possibly, rails_helper.rb
spec_helper.rb
rails_helper.rb
Sorry, something went wrong.
Hey @90yukke, I think there was some configuration missing from my side. Everything is good now.
I had to include
require 'mongoid-rspec' config.include Mongoid::Matchers, type: :model
No branches or pull requests
Hello,
I am getting error mentioned above:
mongoid-5.0.0
mongoid-rspec-3.0.0
The text was updated successfully, but these errors were encountered: