lib/matchers/associations.rb in mongoid-rspec-1.1.1 vs lib/matchers/associations.rb in mongoid-rspec-1.1.2
- old
+ new
@@ -1,4 +1,6 @@
+require 'mongoid/associations'
+
module Mongoid
module Matchers
module Associations
HAS_MANY = defined?(Mongoid::Associations::HasManyRelated) ? Mongoid::Associations::HasManyRelated : Mongoid::Associations::ReferencesMany
HAS_ONE = defined?(Mongoid::Associations::HasOneRelated) ? Mongoid::Associations::HasOneRelated : Mongoid::Associations::ReferencesOne
\ No newline at end of file