Skip to content

Commit 7b5b940

Browse files
committed
Enable Style/EmptyHeredoc and fix offense
1 parent 45cd9bd commit 7b5b940

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

.rubocop.yml

+2
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,8 @@ Layout/LineContinuationSpacing:
101101
Enabled: true
102102
Layout/LineEndStringConcatenationIndentation:
103103
Enabled: true
104+
Style/EmptyHeredoc:
105+
Enabled: true
104106

105107
# Enable our own pending cops.
106108

spec/rubocop/cop/rspec/empty_example_group_spec.rb

+1-2
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,7 @@
4141
end
4242
RUBY
4343

44-
expect_correction(<<~RUBY)
45-
RUBY
44+
expect_correction('')
4645
end
4746

4847
it 'flags example group with examples defined in hooks' do

0 commit comments

Comments
 (0)