Enable Rubocop RSpec/NotToNot (#23723)
This commit is contained in:
parent
a2fdb388eb
commit
65ba0d92ef
40 changed files with 94 additions and 214 deletions
|
@ -139,7 +139,7 @@ RSpec.describe ActivityPub::Activity::Announce do
|
|||
end
|
||||
|
||||
it 'does not fetch the remote status' do
|
||||
expect(a_request(:get, 'https://example.com/actor/hello-world')).not_to have_been_made
|
||||
expect(a_request(:get, 'https://example.com/actor/hello-world')).to_not have_been_made
|
||||
expect(Status.find_by(uri: 'https://example.com/actor/hello-world')).to be_nil
|
||||
end
|
||||
|
||||
|
|
|
@ -102,7 +102,7 @@ describe Request do
|
|||
|
||||
it 'accepts body less than 1 megabyte by default' do
|
||||
stub_request(:any, 'http://example.com').to_return(body: SecureRandom.random_bytes(2.kilobytes))
|
||||
expect { subject.perform { |response| response.body_with_limit } }.not_to raise_error
|
||||
expect { subject.perform { |response| response.body_with_limit } }.to_not raise_error
|
||||
end
|
||||
|
||||
it 'rejects body by given size' do
|
||||
|
|
|
@ -10,7 +10,7 @@ describe StatusFilter do
|
|||
subject { described_class.new(status, nil) }
|
||||
|
||||
context 'when there are no connections' do
|
||||
it { is_expected.not_to be_filtered }
|
||||
it { is_expected.to_not be_filtered }
|
||||
end
|
||||
|
||||
context 'when status account is silenced' do
|
||||
|
@ -36,7 +36,7 @@ describe StatusFilter do
|
|||
subject { described_class.new(status, account) }
|
||||
|
||||
context 'when there are no connections' do
|
||||
it { is_expected.not_to be_filtered }
|
||||
it { is_expected.to_not be_filtered }
|
||||
end
|
||||
|
||||
context 'when status account is blocked' do
|
||||
|
|
|
@ -18,7 +18,7 @@ RSpec.describe TextFormatter do
|
|||
let(:text) { "line\nfeed" }
|
||||
|
||||
it 'removes line feeds' do
|
||||
is_expected.not_to include "\n"
|
||||
is_expected.to_not include "\n"
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue