spec/unit/associations_spec.rb in mongoid-rspec-1.4.3 vs spec/unit/associations_spec.rb in mongoid-rspec-1.4.4
- old
+ new
@@ -23,9 +23,10 @@
describe Article do
it { should be_referenced_in(:author).of_type(User).as_inverse_of(:articles) }
it { should belong_to(:author).of_type(User).as_inverse_of(:articles) }
it { should embed_many(:comments) }
+ it { should embed_one(:permalink) }
end
describe Comment do
it { should be_embedded_in(:article).as_inverse_of(:comments) }
it { should be_referenced_in(:user).as_inverse_of(:comments) }