Skip to content
This repository was archived by the owner on Nov 30, 2024. It is now read-only.

Commit 6d10741

Browse files
committed
Remove blank lines from syntax suggest output
1 parent 9b29513 commit 6d10741

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

spec/integration/spec_file_load_errors_spec.rb

+2-2
Original file line numberDiff line numberDiff line change
@@ -222,9 +222,9 @@ def foo
222222
While loading ./broken_file a `raise SyntaxError` occurred, RSpec will now quit.
223223
EOS
224224

225-
# A fix was backported to 3.2.3
225+
# There was a fix was backported in 3.2.3, but syntax changed in 3.4.0 in terms of line endings
226226
if RUBY_VERSION > '3.2.2'
227-
expect(formatted_output).to include unindent(<<-EOS)
227+
expect(formatted_output).to include unindent(<<-EOS).gsub(/\n\n/,'\n')
228228
SyntaxError:
229229
--> ./tmp/aruba/broken_file.rb
230230
Unmatched keyword, missing `end' ?

0 commit comments

Comments
 (0)