Skip to content

Commit

Permalink
Port cucumber fix across from rspec-core
Browse files Browse the repository at this point in the history
  • Loading branch information
JonRowe committed Nov 4, 2024
1 parent 8667bd3 commit 1722532
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions script/test_all
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@ if ruby -e "exit(defined?(RUBY_PLATFORM) && RUBY_PLATFORM == 'java')"; then
# This is JRUBY which requires this one weird path trick...
PATH="${PWD}/bin:$PATH" \
bundle exec cucumber --strict
elif ruby -e "exit(RUBY_VERSION.to_f >= 3.4)"; then
# This is a monkey patch to fix an issue with cucumber using outdated hash syntax, remove when cucumber is updated or ruby 3.4 released
sed -i '$i\class Hash; alias :__initialize :initialize; def initialize(*args, **_kw, &block) = __initialize(*args, &block); end' bin/cucumber
bin/cucumber --strict
else
bundle exec cucumber --strict
fi;

0 comments on commit 1722532

Please sign in to comment.