Disabled on the fly registration for auth_source fixture.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8913 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
21617889e8
commit
dedfdefcf3
2
test/fixtures/auth_sources.yml
vendored
2
test/fixtures/auth_sources.yml
vendored
@ -10,4 +10,4 @@ auth_sources_001:
|
|||||||
attr_firstname: givenName
|
attr_firstname: givenName
|
||||||
attr_lastname: sn
|
attr_lastname: sn
|
||||||
attr_mail: mail
|
attr_mail: mail
|
||||||
onthefly_register: true
|
onthefly_register: false
|
||||||
|
@ -48,6 +48,7 @@ class AuthSourceLdapTest < ActiveSupport::TestCase
|
|||||||
context '#authenticate' do
|
context '#authenticate' do
|
||||||
setup do
|
setup do
|
||||||
@auth = AuthSourceLdap.find(1)
|
@auth = AuthSourceLdap.find(1)
|
||||||
|
@auth.update_attribute :onthefly_register, true
|
||||||
end
|
end
|
||||||
|
|
||||||
context 'with a valid LDAP user' do
|
context 'with a valid LDAP user' do
|
||||||
|
@ -483,6 +483,7 @@ class UserTest < ActiveSupport::TestCase
|
|||||||
context "on the fly registration" do
|
context "on the fly registration" do
|
||||||
setup do
|
setup do
|
||||||
@auth_source = AuthSourceLdap.find(1)
|
@auth_source = AuthSourceLdap.find(1)
|
||||||
|
@auth.update_attribute :onthefly_register, true
|
||||||
end
|
end
|
||||||
|
|
||||||
context "with a successful authentication" do
|
context "with a successful authentication" do
|
||||||
|
Loading…
x
Reference in New Issue
Block a user