summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2012-02-19 21:39:29 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2012-02-19 21:39:29 +0000
commitdedfdefcf300b99320a32353f1e54b9919d7aadf (patch)
tree70d29120d2d986e7f68cddb0e31bf474b61b7020 /test
parent21617889e8d32762256f5bd0cc5493758b3cffb9 (diff)
downloadredmine-dedfdefcf300b99320a32353f1e54b9919d7aadf.tar.gz
redmine-dedfdefcf300b99320a32353f1e54b9919d7aadf.zip
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
Diffstat (limited to 'test')
-rw-r--r--test/fixtures/auth_sources.yml2
-rw-r--r--test/unit/auth_source_ldap_test.rb1
-rw-r--r--test/unit/user_test.rb1
3 files changed, 3 insertions, 1 deletions
diff --git a/test/fixtures/auth_sources.yml b/test/fixtures/auth_sources.yml
index e478ad0a7..3f980dd95 100644
--- a/test/fixtures/auth_sources.yml
+++ b/test/fixtures/auth_sources.yml
@@ -10,4 +10,4 @@ auth_sources_001:
attr_firstname: givenName
attr_lastname: sn
attr_mail: mail
- onthefly_register: true
+ onthefly_register: false
diff --git a/test/unit/auth_source_ldap_test.rb b/test/unit/auth_source_ldap_test.rb
index f9ee8e0e9..5dc532f23 100644
--- a/test/unit/auth_source_ldap_test.rb
+++ b/test/unit/auth_source_ldap_test.rb
@@ -48,6 +48,7 @@ class AuthSourceLdapTest < ActiveSupport::TestCase
context '#authenticate' do
setup do
@auth = AuthSourceLdap.find(1)
+ @auth.update_attribute :onthefly_register, true
end
context 'with a valid LDAP user' do
diff --git a/test/unit/user_test.rb b/test/unit/user_test.rb
index b75555383..738bd7768 100644
--- a/test/unit/user_test.rb
+++ b/test/unit/user_test.rb
@@ -483,6 +483,7 @@ class UserTest < ActiveSupport::TestCase
context "on the fly registration" do
setup do
@auth_source = AuthSourceLdap.find(1)
+ @auth.update_attribute :onthefly_register, true
end
context "with a successful authentication" do