README.md in mongoid-rspec-1.7.0 vs README.md in mongoid-rspec-1.8.0
- old
+ new
@@ -22,10 +22,10 @@
end
Association Matchers
-
describe User do
- it { should have_many(:articles).with_foreign_key(:author_id) }
+ it { should have_many(:articles).with_foreign_key(:author_id).ordered_by(:title) }
it { should have_one(:record) }
#can verify autobuild is set to true
it { should have_one(:record).with_autobuild }