Browse Source

Autofix Rubocop RSpec/ExcessiveDocstringSpacing (#23666)

closed-social-glitch-2
Nick Schonning 1 year ago
committed by GitHub
parent
commit
b4cbfff3eb
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 2 additions and 9 deletions
  1. +0
    -7
      .rubocop_todo.yml
  2. +1
    -1
      spec/controllers/settings/migrations_controller_spec.rb
  3. +1
    -1
      spec/models/concerns/account_interactions_spec.rb

+ 0
- 7
.rubocop_todo.yml View File

@ -887,13 +887,6 @@ RSpec/EmptyLineAfterSubject:
RSpec/ExampleLength:
Max: 22
# Offense count: 2
# This cop supports safe autocorrection (--autocorrect).
RSpec/ExcessiveDocstringSpacing:
Exclude:
- 'spec/controllers/settings/migrations_controller_spec.rb'
- 'spec/models/concerns/account_interactions_spec.rb'
# Offense count: 1
# This cop supports safe autocorrection (--autocorrect).
RSpec/ExpectActual:

+ 1
- 1
spec/controllers/settings/migrations_controller_spec.rb View File

@ -90,7 +90,7 @@ describe Settings::MigrationsController do
end
end
context 'when a recent migration already exists ' do
context 'when a recent migration already exists' do
let(:acct) { Fabricate(:account, also_known_as: [ActivityPub::TagManager.instance.uri_for(user.account)]) }
before do

+ 1
- 1
spec/models/concerns/account_interactions_spec.rb View File

@ -400,7 +400,7 @@ describe AccountInteractions do
subject { account.domain_blocking?(domain) }
context 'blocking the domain' do
it ' returns true' do
it 'returns true' do
account_domain_block = Fabricate(:account_domain_block, domain: domain)
account.domain_blocks << account_domain_block
is_expected.to be true

Loading…
Cancel
Save