0
0
Fork 0

Fix RSpec/ContextWording cop (#24739)

This commit is contained in:
Matt Jankowski 2023-05-03 23:49:08 -04:00 committed by GitHub
parent cf18cc2891
commit 710745e16b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
105 changed files with 559 additions and 668 deletions

View file

@ -120,7 +120,7 @@ describe MoveWorker do
include_examples 'followers count handling'
include_examples 'lists handling'
context 'and the local user already has the target in a list' do
context 'when the local user already has the target in a list' do
before do
list.accounts << target_account
end
@ -139,7 +139,7 @@ describe MoveWorker do
include_examples 'followers count handling'
include_examples 'lists handling'
context 'and the local user already has the target in a list' do
context 'when the local user already has the target in a list' do
before do
list.accounts << target_account
end

View file

@ -76,7 +76,7 @@ describe Scheduler::AccountsStatusesCleanupScheduler do
end
describe '#compute_budget' do
context 'on a single thread' do
context 'with a single thread' do
let(:process_set_stub) { [{ 'concurrency' => 1, 'queues' => %w(push default) }] }
it 'returns a low value' do
@ -84,7 +84,7 @@ describe Scheduler::AccountsStatusesCleanupScheduler do
end
end
context 'on a lot of threads' do
context 'with a lot of threads' do
let(:process_set_stub) do
[
{ 'concurrency' => 2, 'queues' => %w(push default) },