##// END OF EJS Templates
Rails4: replace deprecated Relation#last with finder options at IssuesControllerTest...
Toshi MARUYAMA -
r12350:7ac013fbe84e
parent child
Show More
@@ -2272,7 +2272,7 class IssuesControllerTest < ActionController::TestCase
2272 :subject => 'This is an issue',
2272 :subject => 'This is an issue',
2273 :status_id => 1}
2273 :status_id => 1}
2274 end
2274 end
2275 issue = Issue.last(:order => 'id')
2275 issue = Issue.order('id').last
2276 assert_equal IssueStatus.default, issue.status
2276 assert_equal IssueStatus.default, issue.status
2277 end
2277 end
2278
2278
General Comments 0
You need to be logged in to leave comments. Login now