]> source.dussan.org Git - redmine.git/commitdiff
remove unneeded Relation#all from IssuesControllerTest#test_bulk_copy_to_another_project
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Fri, 10 Jan 2014 05:46:15 +0000 (05:46 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Fri, 10 Jan 2014 05:46:15 +0000 (05:46 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@12589 e93f8b46-1217-0410-a6f0-8f06a7374b81

test/functional/issues_controller_test.rb

index d88d678f8a49240b8c081458ca6637fa16db047d..8fa45fe7ae9b94e0debbebf79b0402f5e9b490ca 100644 (file)
@@ -3686,7 +3686,7 @@ class IssuesControllerTest < ActionController::TestCase
     end
     assert_redirected_to '/projects/ecookbook/issues'
 
-    copies = Issue.all(:order => 'id DESC', :limit => issues.size)
+    copies = Issue.order('id DESC').limit(issues.size)
     copies.each do |copy|
       assert_equal 2, copy.project_id
     end