spec/unit/associations_spec.rb in mongoid-rspec-1.6.0 vs spec/unit/associations_spec.rb in mongoid-rspec-1.7.0
- old
+ new
@@ -2,10 +2,10 @@
describe "Associations" do
describe User do
it { should have_many(:articles).with_foreign_key(:author_id) }
- it { should have_one(:record) }
+ it { should have_one(:record).with_autobuild }
it { should have_many(:comments).with_dependent(:destroy).with_autosave }
it { should embed_one :profile }