From 424393c28cd3a672344503080306f34a4fbe1837 Mon Sep 17 00:00:00 2001 From: Toshi MARUYAMA Date: Mon, 9 Dec 2013 06:15:20 +0000 Subject: [PATCH] code format clean up WatchersControllerTest git-svn-id: http://svn.redmine.org/redmine/trunk@12392 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- test/functional/watchers_controller_test.rb | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/test/functional/watchers_controller_test.rb b/test/functional/watchers_controller_test.rb index bc8b58b0c..4290a4fac 100644 --- a/test/functional/watchers_controller_test.rb +++ b/test/functional/watchers_controller_test.rb @@ -131,7 +131,8 @@ class WatchersControllerTest < ActionController::TestCase def test_create @request.session[:user_id] = 2 assert_difference('Watcher.count') do - xhr :post, :create, :object_type => 'issue', :object_id => '2', :watcher => {:user_id => '4'} + xhr :post, :create, :object_type => 'issue', :object_id => '2', + :watcher => {:user_id => '4'} assert_response :success assert_match /watchers/, response.body assert_match /ajax-modal/, response.body @@ -142,7 +143,8 @@ class WatchersControllerTest < ActionController::TestCase def test_create_multiple @request.session[:user_id] = 2 assert_difference('Watcher.count', 2) do - xhr :post, :create, :object_type => 'issue', :object_id => '2', :watcher => {:user_ids => ['4', '7']} + xhr :post, :create, :object_type => 'issue', :object_id => '2', + :watcher => {:user_ids => ['4', '7']} assert_response :success assert_match /watchers/, response.body assert_match /ajax-modal/, response.body @@ -164,13 +166,13 @@ class WatchersControllerTest < ActionController::TestCase def test_autocomplete_on_watchable_update @request.session[:user_id] = 2 - xhr :get, :autocomplete_for_user, :q => 'mi', :object_id => '2' , :object_type => 'issue', :project_id => 'ecookbook' + xhr :get, :autocomplete_for_user, :q => 'mi', :object_id => '2', + :object_type => 'issue', :project_id => 'ecookbook' assert_response :success assert_select 'input', :count => 3 assert_select 'input[name=?][value=2]', 'watcher[user_ids][]' assert_select 'input[name=?][value=8]', 'watcher[user_ids][]' assert_select 'input[name=?][value=9]', 'watcher[user_ids][]' - end def test_append