about summary refs log tree commit diff
path: root/spec/validators
diff options
context:
space:
mode:
authorThibG <thib@sitedethib.com>2019-05-19 21:40:36 +0200
committerEugen Rochko <eugen@zeonfederated.com>2019-05-19 21:40:36 +0200
commitae1838655876363065dd062a21064d385a90eb33 (patch)
tree27fb8d7cecb5b5ad79db1115a91968e5cfd07f7c /spec/validators
parent37a04c329c2b859f6a3aeb11795aec1da2943160 (diff)
Fix “invited by” not showing up for invited accounts in admin interface (#10791)
Diffstat (limited to 'spec/validators')
-rw-r--r--spec/validators/blacklisted_email_validator_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/validators/blacklisted_email_validator_spec.rb b/spec/validators/blacklisted_email_validator_spec.rb
index 84b0107dd..ccc5dc0f4 100644
--- a/spec/validators/blacklisted_email_validator_spec.rb
+++ b/spec/validators/blacklisted_email_validator_spec.rb
@@ -8,7 +8,7 @@ RSpec.describe BlacklistedEmailValidator, type: :validator do
     let(:errors) { double(add: nil) }
 
     before do
-      allow(user).to receive(:invited?) { false }
+      allow(user).to receive(:valid_invitation?) { false }
       allow_any_instance_of(described_class).to receive(:blocked_email?) { blocked_email }
       described_class.new.validate(user)
     end