Skip to content

Commit

Permalink
The first shall be the .last, and the last shall be the .first
Browse files Browse the repository at this point in the history
thanks to the default_scope :order_by published_at DESC
  • Loading branch information
joemsak committed Feb 16, 2011
1 parent a4b02b1 commit 69d6503
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/models/blog_posts_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@
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

Expand Down

0 comments on commit 69d6503

Please sign in to comment.