Skip to content

Commit

Permalink
Remove blank lines from syntax suggest output
Browse files Browse the repository at this point in the history
  • Loading branch information
JonRowe committed Nov 20, 2024
1 parent 9b29513 commit 6d10741
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/integration/spec_file_load_errors_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -222,9 +222,9 @@ def foo
While loading ./broken_file a `raise SyntaxError` occurred, RSpec will now quit.
EOS

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

0 comments on commit 6d10741

Please sign in to comment.