Autofix Rubocop RSpec/BeEq (#23740)
This commit is contained in:
parent
bf785df9fe
commit
5116347eb7
39 changed files with 139 additions and 182 deletions
|
@ -20,7 +20,7 @@ describe DomainBlockWorker do
|
|||
it 'returns true for non-existent domain block' do
|
||||
result = subject.perform('aaa')
|
||||
|
||||
expect(result).to eq(true)
|
||||
expect(result).to be(true)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
@ -20,7 +20,7 @@ describe DomainClearMediaWorker do
|
|||
it 'returns true for non-existent domain block' do
|
||||
result = subject.perform('aaa')
|
||||
|
||||
expect(result).to eq(true)
|
||||
expect(result).to be(true)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
@ -15,7 +15,7 @@ describe FeedInsertWorker do
|
|||
allow(FeedManager).to receive(:instance).and_return(instance)
|
||||
result = subject.perform(nil, follower.id)
|
||||
|
||||
expect(result).to eq true
|
||||
expect(result).to be true
|
||||
expect(instance).to_not have_received(:push_to_home)
|
||||
end
|
||||
|
||||
|
@ -24,7 +24,7 @@ describe FeedInsertWorker do
|
|||
allow(FeedManager).to receive(:instance).and_return(instance)
|
||||
result = subject.perform(status.id, nil)
|
||||
|
||||
expect(result).to eq true
|
||||
expect(result).to be true
|
||||
expect(instance).to_not have_received(:push_to_home)
|
||||
end
|
||||
end
|
||||
|
|
|
@ -20,7 +20,7 @@ describe RegenerationWorker do
|
|||
it 'fails when account does not exist' do
|
||||
result = subject.perform('aaa')
|
||||
|
||||
expect(result).to eq(true)
|
||||
expect(result).to be(true)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue