summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2014-02-04 23:49:55 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2014-02-04 23:49:55 +0000
commitf1572de51e06a44601fdc9cfd5e0443cd4474d97 (patch)
treed6cf088b08c5a167c86a3d40f369df7526684c0f
parente91bce3d05a7875b66459cd76ed78fa1e41feda5 (diff)
downloadredmine-f1572de51e06a44601fdc9cfd5e0443cd4474d97.tar.gz
redmine-f1572de51e06a44601fdc9cfd5e0443cd4474d97.zip
code format clean up AuthSourcesControllerTest
git-svn-id: http://svn.redmine.org/redmine/trunk@12795 e93f8b46-1217-0410-a6f0-8f06a7374b81
-rw-r--r--test/functional/auth_sources_controller_test.rb13
1 files changed, 9 insertions, 4 deletions
diff --git a/test/functional/auth_sources_controller_test.rb b/test/functional/auth_sources_controller_test.rb
index f46583900..c56326378 100644
--- a/test/functional/auth_sources_controller_test.rb
+++ b/test/functional/auth_sources_controller_test.rb
@@ -68,7 +68,9 @@ class AuthSourcesControllerTest < ActionController::TestCase
def test_create_with_failure
assert_no_difference 'AuthSourceLdap.count' do
- post :create, :type => 'AuthSourceLdap', :auth_source => {:name => 'Test', :host => '', :port => '389', :attr_login => 'cn'}
+ post :create, :type => 'AuthSourceLdap',
+ :auth_source => {:name => 'Test', :host => '',
+ :port => '389', :attr_login => 'cn'}
assert_response :success
assert_template 'new'
end
@@ -101,16 +103,19 @@ class AuthSourcesControllerTest < ActionController::TestCase
end
def test_update
- put :update, :id => 1, :auth_source => {:name => 'Renamed', :host => '192.168.0.10', :port => '389', :attr_login => 'uid'}
+ put :update, :id => 1,
+ :auth_source => {:name => 'Renamed', :host => '192.168.0.10',
+ :port => '389', :attr_login => 'uid'}
assert_redirected_to '/auth_sources'
-
source = AuthSourceLdap.find(1)
assert_equal 'Renamed', source.name
assert_equal '192.168.0.10', source.host
end
def test_update_with_failure
- put :update, :id => 1, :auth_source => {:name => 'Renamed', :host => '', :port => '389', :attr_login => 'uid'}
+ put :update, :id => 1,
+ :auth_source => {:name => 'Renamed', :host => '',
+ :port => '389', :attr_login => 'uid'}
assert_response :success
assert_template 'edit'
assert_error_tag :content => /host can&#x27;t be blank/i