Skip to content

Commit

Permalink
Fix for Ruby 3.4 output in cucumber scenarios
Browse files Browse the repository at this point in the history
  • Loading branch information
JonRowe committed Jul 15, 2024
1 parent 1c1b211 commit 167d9e5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions features/step_definitions/additional_cli_steps.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
table.raw.flatten.each do |string|
if RUBY_VERSION == '1.8.7' && string =~ /\{.+=>.+\}/
warn "Skipping checking #{string} on 1.8.7 because hash ordering is not consistent"
elsif RUBY_VERSION.to_f > 3.3
expect(all_output).to include_output_string string.gsub('undefined method `', "undefined method '")
else
expect(all_output).to include_output_string string
end
Expand Down

0 comments on commit 167d9e5

Please sign in to comment.