We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents f2b7cd1 + e0509b9 commit 00b6c03Copy full SHA for 00b6c03
spec/rubocop/cop/rspec/excessive_docstring_spacing_spec.rb
@@ -755,4 +755,21 @@
755
end
756
RUBY
757
758
+
759
+ it 'flags \-separated multiline interpolated strings with ' \
760
+ 'leading whitespace and corrects trailing empty lines' do
761
+ expect_offense(<<~'RUBY')
762
+ describe " ##{object} " \
763
+ ^^^^^^^^^^^^^^^^ Excessive whitespace.
764
+ "(is cool)" \
765
+ ' ' \
766
+ " " do
767
+ end
768
+ RUBY
769
770
+ expect_correction(<<~'RUBY')
771
+ describe "##{object} (is cool)" do
772
773
774
775
0 commit comments