]> source.dussan.org Git - redmine.git/commitdiff
Disabled on the fly registration for auth_source fixture.
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Sun, 19 Feb 2012 21:39:29 +0000 (21:39 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Sun, 19 Feb 2012 21:39:29 +0000 (21:39 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8913 e93f8b46-1217-0410-a6f0-8f06a7374b81

test/fixtures/auth_sources.yml
test/unit/auth_source_ldap_test.rb
test/unit/user_test.rb

index e478ad0a7170e1ec97708515e28233c0fc771c33..3f980dd959b5d1b3a1f7ce60f2194e07073e080e 100644 (file)
@@ -10,4 +10,4 @@ auth_sources_001:
   attr_firstname: givenName
   attr_lastname: sn
   attr_mail: mail
-  onthefly_register: true
+  onthefly_register: false
index f9ee8e0e936f110def6cbfa15185217f6fb19232..5dc532f236b22484def25506e1b57319eccf4163 100644 (file)
@@ -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
index b755553834b68509c495331ce09c6d10d02f9cf6..738bd776844fb6c1a734c77b53d5ddb8c81c2e4a 100644 (file)
@@ -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