From de3d1b0a125ad2cd0ead8c4a3414854b42db1f27 Mon Sep 17 00:00:00 2001 From: Pietro Giorgianni Date: Thu, 16 Feb 2012 12:38:27 +0100 Subject: [PATCH] Ensure that fixtured content types always define order_by. --- spec/factories.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/spec/factories.rb b/spec/factories.rb index 3968ccb9..8a60b85c 100644 --- a/spec/factories.rb +++ b/spec/factories.rb @@ -136,6 +136,7 @@ FactoryGirl.define do factory :content_type do name 'My project' site { Site.where(:subdomain => "acme").first || Factory(:site) } + order_by 'created_at' end factory :content_instance do