spec/unit/associations_spec.rb in mongoid-rspec-1.7.0 vs spec/unit/associations_spec.rb in mongoid-rspec-1.8.0
- old
+ new
@@ -1,9 +1,9 @@
require 'spec_helper'
describe "Associations" do
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).with_autobuild }
it { should have_many(:comments).with_dependent(:destroy).with_autosave }