سؤال

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
هل كانت مفيدة؟

المحلول

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.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top