Fix “invited by” not showing up for invited accounts in admin interface (#10791)
This commit is contained in:
parent
37a04c329c
commit
ae18386558
3 changed files with 7 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue