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

test/functional/issues_controller_test.rb

index ed7985a1eab258905383a1deb4ce6a90f7ff2d54..d88d678f8a49240b8c081458ca6637fa16db047d 100644 (file)
@@ -3710,7 +3710,7 @@ class IssuesControllerTest < ActionController::TestCase
            }
     end
 
-    copies = Issue.all(:order => 'id DESC', :limit => issues.size)
+    copies = Issue.order('id DESC').limit(issues.size)
     issues.each do |orig|
       copy = copies.detect {|c| c.subject == orig.subject}
       assert_not_nil copy