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 3, 2024
1 parent 72445ca commit 78be9e0
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 @@ -26,5 +26,9 @@ if ruby -e "exit(defined?(RUBY_PLATFORM) && RUBY_PLATFORM == 'java')"; then
PATH="${PWD}/bin:$PATH" \
bundle exec cucumber --strict
else
if 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
fi
bundle exec cucumber --strict
fi;

0 comments on commit 78be9e0

Please sign in to comment.