]> source.dussan.org Git - redmine.git/commitdiff
Rails4: replace deprecated Relation#update_all at ProjectTest
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Thu, 9 Jan 2014 04:24:07 +0000 (04:24 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Thu, 9 Jan 2014 04:24:07 +0000 (04:24 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@12554 e93f8b46-1217-0410-a6f0-8f06a7374b81

test/unit/project_test.rb

index 440ba96ccdbc2bd748dd40686eea21ca622a4796..aa926562ab048ae5ac6b01b612e2aa52e01151c7 100644 (file)
@@ -133,8 +133,7 @@ class ProjectTest < ActiveSupport::TestCase
   end
 
   def test_identifier_should_not_be_frozen_for_a_saved_project_with_blank_identifier
-    Project.update_all(["identifier = ''"], "id = 1")
-
+    Project.where(:id => 1).update_all(["identifier = ''"])
     assert_equal false, Project.find(1).identifier_frozen?
   end