spec/mongoid/association/referenced/has_many_models.rb in mongoid-7.2.0.rc1 vs spec/mongoid/association/referenced/has_many_models.rb in mongoid-7.2.0

- old
+ new

@@ -45,5 +45,17 @@ class HmmTicket include Mongoid::Document belongs_to :person end + +class HmmBus + include Mongoid::Document + + has_many :seats, class_name: 'HmmBusSeat' +end + +class HmmBusSeat + include Mongoid::Document + + # No belongs_to :bus +end