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
This commit is contained in:
parent
14fa4dc683
commit
a8c8266b9d
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue