diff options
Diffstat (limited to 'test/unit')
-rw-r--r-- | test/unit/auth_source_ldap_test.rb | 1 | ||||
-rw-r--r-- | test/unit/user_test.rb | 1 |
2 files changed, 2 insertions, 0 deletions
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 |