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:
parent
30e3e7e0b4
commit
4ca6fb4226
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue