From 4ca6fb4226df108281a9e5391f515fe6ae62683a Mon Sep 17 00:00:00 2001 From: Toshi MARUYAMA Date: Wed, 8 Jan 2014 04:58:29 +0000 Subject: [PATCH] Rails4: replace deprecated Relation#update_all at BoardsControllerTest git-svn-id: http://svn.redmine.org/redmine/trunk@12513 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- test/functional/boards_controller_test.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/functional/boards_controller_test.rb b/test/functional/boards_controller_test.rb index a8154faa3..ec654cccb 100644 --- a/test/functional/boards_controller_test.rb +++ b/test/functional/boards_controller_test.rb @@ -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 -- 2.39.5