summaryrefslogtreecommitdiffstats
path: root/test/functional/auth_sources_controller_test.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/functional/auth_sources_controller_test.rb')
-rw-r--r--test/functional/auth_sources_controller_test.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/functional/auth_sources_controller_test.rb b/test/functional/auth_sources_controller_test.rb
index 96dcb5c78..ae197e227 100644
--- a/test/functional/auth_sources_controller_test.rb
+++ b/test/functional/auth_sources_controller_test.rb
@@ -117,11 +117,11 @@ class AuthSourcesControllerTest < ActionController::TestCase
end
def test_test_connection_with_failure
- AuthSourceLdap.any_instance.stubs(:test_connection).raises(Exception.new("Something went wrong"))
+ AuthSourceLdap.any_instance.stubs(:initialize_ldap_con).raises(Net::LDAP::LdapError.new("Something went wrong"))
get :test_connection, :id => 1
assert_redirected_to '/auth_sources'
assert_not_nil flash[:error]
- assert_include '(Something went wrong)', flash[:error]
+ assert_include 'Something went wrong', flash[:error]
end
end