##// END OF EJS Templates
Rails3: test: fix ordering functional/comments_controller_test.rb...
Toshi MARUYAMA -
r8867:b7ead65fde0f
parent child
Show More
@@ -29,7 +29,7 class CommentsControllerTest < ActionController::TestCase
29 29 post :create, :id => 1, :comment => { :comments => 'This is a test comment' }
30 30 assert_redirected_to '/news/1'
31 31
32 comment = News.find(1).comments.find(:first, :order => 'created_on DESC')
32 comment = News.find(1).comments.last
33 33 assert_not_nil comment
34 34 assert_equal 'This is a test comment', comment.comments
35 35 assert_equal User.find(2), comment.author
General Comments 0
You need to be logged in to leave comments. Login now