Rails4: replace deprecated Relation#update_all at ProjectTest

git-svn-id: http://svn.redmine.org/redmine/trunk@12554 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Toshi MARUYAMA 2014-01-09 04:24:07 +00:00
parent d15183b2e7
commit 494a13d004
1 changed files with 1 additions and 2 deletions

View 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