]> source.dussan.org Git - redmine.git/commitdiff
Rails4: replace deprecated Relation#update_all at application helper test
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Tue, 7 Jan 2014 13:26:13 +0000 (13:26 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Tue, 7 Jan 2014 13:26:13 +0000 (13:26 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@12490 e93f8b46-1217-0410-a6f0-8f06a7374b81

test/unit/helpers/application_helper_test.rb

index 0d2cc444643d84a632821a093a95c7e647769891..82d55702ad9d845b3265de23fa22e2f196249c8b 100644 (file)
@@ -1148,8 +1148,7 @@ RAW
 
   def test_link_to_legacy_project_with_numerical_identifier_should_use_id
     # numeric identifier are no longer allowed
-    Project.update_all "identifier=25", "id=1"
-
+    Project.where(:id => 1).update_all(:identifier => 25)
     assert_equal '<a href="/projects/1">eCookbook</a>',
                  link_to_project(Project.find(1))
   end