Skip to content

Commit

Permalink
Merge pull request #3124 from rspec/fix-build
Browse files Browse the repository at this point in the history
Fix specs for ruby head.
  • Loading branch information
JonRowe authored Nov 20, 2024
2 parents 87fb8b5 + d02e1b4 commit f0b1d0d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/rspec/core/drb.rb
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ def add_full_description(argv)
def add_filter(argv, name, hash)
hash.each_pair do |k, v|
next if CONDITIONAL_FILTERS.include?(k)
tag = name == :inclusion ? k.to_s : "~#{k}".dup
tag = name == :inclusion ? k.to_s.dup : "~#{k}".dup
tag << ":#{v}" if v.is_a?(String)
argv << "--tag" << tag
end unless hash.empty?
Expand Down
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.gsub(/\n\n/, "\n")).to include unindent(<<-EOS)
SyntaxError:
--> ./tmp/aruba/broken_file.rb
Unmatched keyword, missing `end' ?
Expand Down

0 comments on commit f0b1d0d

Please sign in to comment.