From 69d65032f8fc53a19171bf21376daf168a4c7a10 Mon Sep 17 00:00:00 2001 From: Joe Sak Date: Wed, 16 Feb 2011 01:19:11 -0600 Subject: The first shall be the .last, and the last shall be the .first thanks to the default_scope :order_by published_at DESC --- spec/models/blog_posts_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'spec/models') diff --git a/spec/models/blog_posts_spec.rb b/spec/models/blog_posts_spec.rb index c15d1da..f15cd64 100644 --- a/spec/models/blog_posts_spec.rb +++ b/spec/models/blog_posts_spec.rb @@ -126,7 +126,7 @@ describe BlogPost do Factory(:post) blog_post = Factory(:post, :published_at => Time.now + 1.minute) blog_posts = BlogPost.all - blog_posts.first.next.should == blog_post + blog_posts.last.next.should == blog_post end end -- cgit v1.2.3