0
0
Fork 0

Fix RSpec/MissingExampleGroupArgument cop (#25310)

This commit is contained in:
Matt Jankowski 2023-06-06 09:51:42 -04:00 committed by GitHub
parent b74c3cd708
commit 6c0e3f490a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
22 changed files with 38 additions and 68 deletions

View file

@ -9,7 +9,7 @@ RSpec.describe EmailDomainBlock do
context 'when given an e-mail address' do
let(:input) { "foo@#{domain}" }
context do
context 'with a top level domain' do
let(:domain) { 'example.com' }
it 'returns true if the domain is blocked' do
@ -23,7 +23,7 @@ RSpec.describe EmailDomainBlock do
end
end
context do
context 'with a subdomain' do
let(:domain) { 'mail.example.com' }
it 'returns true if it is a subdomain of a blocked domain' do