diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2012-03-02 11:31:44 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2012-03-02 11:31:44 +0000 |
commit | 9ffccf5304dccc86e0ed64c9f4791c527e52982d (patch) | |
tree | 074babc2d26302e0090a3a0035c467d98cd27515 /app | |
parent | 8fda77dc4022bec7b87874de3b7c36291642416c (diff) | |
download | redmine-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.rb | 4 |
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 |