spec/unit/associations_spec.rb in mongoid-rspec-1.8.2 vs spec/unit/associations_spec.rb in mongoid-rspec-1.9.0
- old
+ new
@@ -17,15 +17,15 @@
it { should be_embedded_in(:user).as_inverse_of(:profile) }
end
describe Article do
it { should belong_to(:author).of_type(User).as_inverse_of(:articles).with_index }
- it { should embed_many(:comments) }
+ it { should embed_many(:comments).with_cascading_callbacks }
it { should embed_one(:permalink) }
end
describe Comment do
- it { should be_embedded_in(:article).as_inverse_of(:comments) }
+ it { should be_embedded_in(:article).as_inverse_of(:comments).with_polymorphism }
it { should belong_to(:user).as_inverse_of(:comments) }
end
describe Record do
it { should belong_to(:user).as_inverse_of(:record) }