Adds functional test for #test_connection.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9053 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang
2012-03-02 11:31:44 +00:00
parent 8fda77dc40
commit 9ffccf5304
2 changed files with 20 additions and 2 deletions
+2 -2
View File
@@ -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