#assert_nothing_raised takes no arguments.

git-svn-id: http://svn.redmine.org/redmine/trunk@16944 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang
2017-08-01 21:40:58 +00:00
parent ae23c4ce85
commit 9f9f7993e6

View File

@@ -159,7 +159,7 @@ class AuthSourceLdapTest < ActiveSupport::TestCase
def test_test_connection_with_correct_host_and_port
auth_source = AuthSourceLdap.find(1)
assert_nothing_raised Net::LDAP::Error do
assert_nothing_raised do
auth_source.test_connection
end
end