Autofix Rubocop RSpec/BeEq (#23740)
This commit is contained in:
@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user