diff options
author | Nick Schonning <nschonni@gmail.com> | 2023-02-19 23:24:14 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-20 13:24:14 +0900 |
commit | 4552685f6bd400666ec4058783eeabb11568e575 (patch) | |
tree | ab708e0d54b9309f96ef0e4d17e8afd32221c5c6 /spec/validators | |
parent | 4ea1e0fceb0c0c5fee014a99f81f8f13a16f6dde (diff) |
Autofix Rubocop RSpec/LeadingSubject (#23670)
Diffstat (limited to 'spec/validators')
-rw-r--r-- | spec/validators/blacklisted_email_validator_spec.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/validators/blacklisted_email_validator_spec.rb b/spec/validators/blacklisted_email_validator_spec.rb index cb807fe24..a642405ae 100644 --- a/spec/validators/blacklisted_email_validator_spec.rb +++ b/spec/validators/blacklisted_email_validator_spec.rb @@ -4,6 +4,8 @@ require 'rails_helper' RSpec.describe BlacklistedEmailValidator, type: :validator do describe '#validate' do + subject { described_class.new.validate(user); errors } + let(:user) { double(email: 'info@mail.com', sign_up_ip: '1.2.3.4', errors: errors) } let(:errors) { double(add: nil) } @@ -12,8 +14,6 @@ RSpec.describe BlacklistedEmailValidator, type: :validator do allow_any_instance_of(described_class).to receive(:blocked_email_provider?) { blocked_email } end - subject { described_class.new.validate(user); errors } - context 'when e-mail provider is blocked' do let(:blocked_email) { true } |