about summary refs log tree commit diff
diff options
context:
space:
mode:
authorNick Schonning <nschonni@gmail.com>2023-02-17 07:46:00 -0500
committerGitHub <noreply@github.com>2023-02-17 21:46:00 +0900
commit6ed6c41724e9a80c9cbb068d7a59271b583d671c (patch)
tree4289f76b3c38c6afb641fe70c162580efa72da4c
parent68b1071f8634de1c15877215df73a7c006aa6222 (diff)
Autofix Rubocop RSpec/EmptyLineAfterExample (#23661)
-rw-r--r--.rubocop_todo.yml7
-rw-r--r--spec/services/search_service_spec.rb2
2 files changed, 2 insertions, 7 deletions
diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml
index a990e9d18..4340d43c1 100644
--- a/.rubocop_todo.yml
+++ b/.rubocop_todo.yml
@@ -1164,13 +1164,6 @@ RSpec/EmptyExampleGroup:
     - 'spec/models/web/setting_spec.rb'
     - 'spec/services/unmute_service_spec.rb'
 
-# Offense count: 2
-# This cop supports safe autocorrection (--autocorrect).
-# Configuration parameters: AllowConsecutiveOneLiners.
-RSpec/EmptyLineAfterExample:
-  Exclude:
-    - 'spec/services/search_service_spec.rb'
-
 # Offense count: 25
 # This cop supports safe autocorrection (--autocorrect).
 RSpec/EmptyLineAfterFinalLet:
diff --git a/spec/services/search_service_spec.rb b/spec/services/search_service_spec.rb
index 5b52662ba..6f32007e8 100644
--- a/spec/services/search_service_spec.rb
+++ b/spec/services/search_service_spec.rb
@@ -83,6 +83,7 @@ describe SearchService, type: :service do
           expect(Tag).to have_received(:search_for).with('tag', 10, 0, exclude_unreviewed: nil)
           expect(results).to eq empty_results.merge(hashtags: [tag])
         end
+
         it 'does not include tag when starts with @ character' do
           query = '@username'
           allow(Tag).to receive(:search_for)
@@ -91,6 +92,7 @@ describe SearchService, type: :service do
           expect(Tag).not_to have_received(:search_for)
           expect(results).to eq empty_results
         end
+
         it 'does not include account when starts with # character' do
           query = '#tag'
           allow(AccountSearchService).to receive(:new)