From 8c9a81d4c77f9d2ff9d0533b54d4c728e0081b5a Mon Sep 17 00:00:00 2001 From: Toshi MARUYAMA Date: Wed, 4 Nov 2020 14:43:18 +0000 Subject: [PATCH] add space after comma to test/unit/auth_source_ldap_test.rb git-svn-id: http://svn.redmine.org/redmine/trunk@20244 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- test/unit/auth_source_ldap_test.rb | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/test/unit/auth_source_ldap_test.rb b/test/unit/auth_source_ldap_test.rb index 2b317b694..abbdbb7ce 100644 --- a/test/unit/auth_source_ldap_test.rb +++ b/test/unit/auth_source_ldap_test.rb @@ -123,7 +123,7 @@ class AuthSourceLdapTest < ActiveSupport::TestCase auth = AuthSourceLdap.find(1) auth.update_attribute :onthefly_register, true - attributes = auth.authenticate('example1','123456') + attributes = auth.authenticate('example1', '123456') assert attributes.is_a?(Hash), "An hash was not returned" assert_equal 'Example', attributes[:firstname] assert_equal 'One', attributes[:lastname] @@ -136,22 +136,22 @@ class AuthSourceLdapTest < ActiveSupport::TestCase test '#authenticate with an invalid LDAP user should return nil' do auth = AuthSourceLdap.find(1) - assert_nil auth.authenticate('nouser','123456') + assert_nil auth.authenticate('nouser', '123456') end test '#authenticate without a login should return nil' do auth = AuthSourceLdap.find(1) - assert_nil auth.authenticate('','123456') + assert_nil auth.authenticate('', '123456') end test '#authenticate without a password should return nil' do auth = AuthSourceLdap.find(1) - assert_nil auth.authenticate('edavis','') + assert_nil auth.authenticate('edavis', '') end test '#authenticate without filter should return any user' do auth = AuthSourceLdap.find(1) - assert auth.authenticate('example1','123456') + assert auth.authenticate('example1', '123456') assert auth.authenticate('edavis', '123456') end @@ -159,7 +159,7 @@ class AuthSourceLdapTest < ActiveSupport::TestCase auth = AuthSourceLdap.find(1) auth.filter = "(mail=*@redmine.org)" - assert auth.authenticate('example1','123456') + assert auth.authenticate('example1', '123456') assert_nil auth.authenticate('edavis', '123456') end