문제

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