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

test/functional/boards_controller_test.rb

index a8154faa389386887caf68d966219cac85368222..ec654cccbfdb077554a5801da6bbb9bc2b3742ba 100644 (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