diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2013-12-09 06:15:20 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2013-12-09 06:15:20 +0000 |
commit | 424393c28cd3a672344503080306f34a4fbe1837 (patch) | |
tree | 04aec79dfc65a1a6a08024860e48164eedc3592b /test/functional/watchers_controller_test.rb | |
parent | 3782836e73e7fc2d48bd43536255e0c986344c2a (diff) | |
download | redmine-424393c28cd3a672344503080306f34a4fbe1837.tar.gz redmine-424393c28cd3a672344503080306f34a4fbe1837.zip |
code format clean up WatchersControllerTest
git-svn-id: http://svn.redmine.org/redmine/trunk@12392 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/functional/watchers_controller_test.rb')
-rw-r--r-- | test/functional/watchers_controller_test.rb | 10 |
1 files 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 |