Autofix Rubocop RSpec/ReturnFromStub (#23724)
This commit is contained in:
parent
21bf326356
commit
a2fdb388eb
7 changed files with 6 additions and 19 deletions
|
@ -8,7 +8,7 @@ RSpec.describe BlacklistedEmailValidator, type: :validator do
|
|||
let(:errors) { double(add: nil) }
|
||||
|
||||
before do
|
||||
allow(user).to receive(:valid_invitation?) { false }
|
||||
allow(user).to receive(:valid_invitation?).and_return(false)
|
||||
allow_any_instance_of(described_class).to receive(:blocked_email_provider?) { blocked_email }
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue