From a8c8266b9d9a9672bc3513e51094f772c9f57b5a Mon Sep 17 00:00:00 2001 From: Toshi MARUYAMA Date: Tue, 7 Jan 2014 13:26:13 +0000 Subject: [PATCH] Rails4: replace deprecated Relation#update_all at application helper test git-svn-id: http://svn.redmine.org/redmine/trunk@12490 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- test/unit/helpers/application_helper_test.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/test/unit/helpers/application_helper_test.rb b/test/unit/helpers/application_helper_test.rb index 0d2cc4446..82d55702a 100644 --- a/test/unit/helpers/application_helper_test.rb +++ b/test/unit/helpers/application_helper_test.rb @@ -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 'eCookbook', link_to_project(Project.find(1)) end -- 2.39.5