Skip to content

Commit 9297f1a

Browse files
committed
Fix offenses for InternalAffairs/ExampleDescription cop
``` Offenses: spec/rubocop/cop/rspec/empty_line_after_hook_spec.rb:316:8: C: [Corrected] InternalAffairs/ExampleDescription: Description does not match use of expect_offense. it 'allows multiple one-liner blocks' do ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ spec/rubocop/cop/rspec/empty_line_after_hook_spec.rb:336:8: C: [Corrected] InternalAffairs/ExampleDescription: Description does not match use of expect_offense. it 'allows multiple one-liner blocks with comments' do ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ```
1 parent bb168ba commit 9297f1a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

spec/rubocop/cop/rspec/empty_line_after_hook_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,7 @@
313313
it_behaves_like 'always require empty line after hook groups'
314314
it_behaves_like 'never allows consecutive multiline blocks'
315315

316-
it 'allows multiple one-liner blocks' do
316+
it 'ignores multiple one-liner blocks' do
317317
expect_offense(<<~RUBY)
318318
RSpec.describe User do
319319
before { do_something }
@@ -333,7 +333,7 @@
333333
RUBY
334334
end
335335

336-
it 'allows multiple one-liner blocks with comments' do
336+
it 'ignores multiple one-liner blocks with comments' do
337337
expect_offense(<<~RUBY)
338338
RSpec.describe User do
339339
before { do_something }

0 commit comments

Comments
 (0)