diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2016-01-22 18:12:03 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2016-01-22 18:12:03 +0000 |
commit | 5bb0ad461d300db5ec8681294991402f10a974bc (patch) | |
tree | 389d06452efd8ca2474fa12b89cf21b907961bb8 /test/unit/auth_source_ldap_test.rb | |
parent | 52621c697d60f1aac2694e097b732b9df51ee8a8 (diff) | |
download | redmine-5bb0ad461d300db5ec8681294991402f10a974bc.tar.gz redmine-5bb0ad461d300db5ec8681294991402f10a974bc.zip |
Include tested method name in tests names (#21674).
git-svn-id: http://svn.redmine.org/redmine/trunk@15089 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/unit/auth_source_ldap_test.rb')
-rw-r--r-- | test/unit/auth_source_ldap_test.rb | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/test/unit/auth_source_ldap_test.rb b/test/unit/auth_source_ldap_test.rb index fefac2e07..2668a7416 100644 --- a/test/unit/auth_source_ldap_test.rb +++ b/test/unit/auth_source_ldap_test.rb @@ -156,7 +156,7 @@ class AuthSourceLdapTest < ActiveSupport::TestCase assert_equal [], results end - def test_ldap_with_correct_host_and_port + def test_test_connection_with_correct_host_and_port auth_source = AuthSourceLdap.find(1) assert_nothing_raised Net::LDAP::Error do @@ -164,7 +164,7 @@ class AuthSourceLdapTest < ActiveSupport::TestCase end end - def test_ldap_with_incorrect_host + def test_test_connection_with_incorrect_host auth_source = AuthSourceLdap.find(1) auth_source.host = "badhost" auth_source.save! @@ -174,7 +174,7 @@ class AuthSourceLdapTest < ActiveSupport::TestCase end end - def test_ldap_with_incorrect_port + def test_test_connection_with_incorrect_port auth_source = AuthSourceLdap.find(1) auth_source.port = 1234 auth_source.save! @@ -184,7 +184,7 @@ class AuthSourceLdapTest < ActiveSupport::TestCase end end - def test_ldap_bind_with_account_and_password + def test_test_connection_bind_with_account_and_password auth_source = AuthSourceLdap.find(1) auth_source.account = "cn=admin,dc=redmine,dc=org" auth_source.account_password = "secret" @@ -195,7 +195,7 @@ class AuthSourceLdapTest < ActiveSupport::TestCase assert_nil auth_source.test_connection end - def test_ldap_bind_without_account_and_password + def test_test_connection_bind_without_account_and_password auth_source = AuthSourceLdap.find(1) assert_nil auth_source.account @@ -203,7 +203,7 @@ class AuthSourceLdapTest < ActiveSupport::TestCase assert_nil auth_source.test_connection end - def test_ldap_bind_with_incorrect_account + def test_test_connection_bind_with_incorrect_account auth_source = AuthSourceLdap.find(1) auth_source.account = "cn=baduser,dc=redmine,dc=org" auth_source.account_password = "secret" @@ -216,7 +216,7 @@ class AuthSourceLdapTest < ActiveSupport::TestCase end end - def test_ldap_bind_with_incorrect_password + def test_test_connection_bind_with_incorrect_password auth_source = AuthSourceLdap.find(1) auth_source.account = "cn=admin,dc=redmine,dc=org" auth_source.account_password = "badpassword" |