diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2019-05-03 23:44:44 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-05-03 23:44:44 +0200 |
commit | 7cb369d4c66c4381c856a2714b4117d6204cd4bb (patch) | |
tree | cc1eff91f4e222262d0310f42240ddb6e4191d77 /spec/validators | |
parent | d77ee3f276dc42fb0219ab1b02162f2f1b90257b (diff) |
Change e-mail whitelist/blacklist to not be checked when invited (#10683)
* Change e-mail whitelist/blacklist to not be checked when invited And only when creating an account, not when updating it later Fix #10648 * Fix test
Diffstat (limited to 'spec/validators')
-rw-r--r-- | spec/validators/blacklisted_email_validator_spec.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/spec/validators/blacklisted_email_validator_spec.rb b/spec/validators/blacklisted_email_validator_spec.rb index d2e442f4a..84b0107dd 100644 --- a/spec/validators/blacklisted_email_validator_spec.rb +++ b/spec/validators/blacklisted_email_validator_spec.rb @@ -8,6 +8,7 @@ RSpec.describe BlacklistedEmailValidator, type: :validator do let(:errors) { double(add: nil) } before do + allow(user).to receive(:invited?) { false } allow_any_instance_of(described_class).to receive(:blocked_email?) { blocked_email } described_class.new.validate(user) end |