Autofix Rubocop RSpec/BeEq (#23740)

This commit is contained in:
Nick Schonning
2023-02-20 00:14:50 -05:00
committed by GitHub
parent bf785df9fe
commit 5116347eb7
39 changed files with 139 additions and 182 deletions

View File

@ -24,16 +24,16 @@ RSpec.describe DomainBlock, type: :model do
describe '.blocked?' do
it 'returns true if the domain is suspended' do
Fabricate(:domain_block, domain: 'example.com', severity: :suspend)
expect(DomainBlock.blocked?('example.com')).to eq true
expect(DomainBlock.blocked?('example.com')).to be true
end
it 'returns false even if the domain is silenced' do
Fabricate(:domain_block, domain: 'example.com', severity: :silence)
expect(DomainBlock.blocked?('example.com')).to eq false
expect(DomainBlock.blocked?('example.com')).to be false
end
it 'returns false if the domain is not suspended nor silenced' do
expect(DomainBlock.blocked?('example.com')).to eq false
expect(DomainBlock.blocked?('example.com')).to be false
end
end