summaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2012-03-02 11:31:44 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2012-03-02 11:31:44 +0000
commit9ffccf5304dccc86e0ed64c9f4791c527e52982d (patch)
tree074babc2d26302e0090a3a0035c467d98cd27515 /app
parent8fda77dc4022bec7b87874de3b7c36291642416c (diff)
downloadredmine-9ffccf5304dccc86e0ed64c9f4791c527e52982d.tar.gz
redmine-9ffccf5304dccc86e0ed64c9f4791c527e52982d.zip
Adds functional test for #test_connection.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9053 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app')
-rw-r--r--app/controllers/auth_sources_controller.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/controllers/auth_sources_controller.rb b/app/controllers/auth_sources_controller.rb
index cf139a187..2a854ad48 100644
--- a/app/controllers/auth_sources_controller.rb
+++ b/app/controllers/auth_sources_controller.rb
@@ -64,8 +64,8 @@ class AuthSourcesController < ApplicationController
begin
@auth_method.test_connection
flash[:notice] = l(:notice_successful_connection)
- rescue => text
- flash[:error] = l(:error_unable_to_connect, text.message)
+ rescue Exception => e
+ flash[:error] = l(:error_unable_to_connect, e.message)
end
redirect_to :action => 'index'
end