Rails4: replace deprecated Relation#update_all at BoardsControllerTest

git-svn-id: http://svn.redmine.org/redmine/trunk@12513 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Toshi MARUYAMA 2014-01-08 04:58:29 +00:00
parent 30e3e7e0b4
commit 4ca6fb4226
1 changed files with 1 additions and 1 deletions

View File

@ -57,7 +57,7 @@ class BoardsControllerTest < ActionController::TestCase
def test_show_should_display_sticky_messages_first
Message.update_all(:sticky => 0)
Message.update_all({:sticky => 1}, {:id => 1})
Message.where({:id => 1}).update_all({:sticky => 1})
get :show, :project_id => 1, :id => 1
assert_response :success