Skip to content

Commit 1722532

Browse files
committed
Port cucumber fix across from rspec-core
1 parent 8667bd3 commit 1722532

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

script/test_all

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,10 @@ if ruby -e "exit(defined?(RUBY_PLATFORM) && RUBY_PLATFORM == 'java')"; then
2525
# This is JRUBY which requires this one weird path trick...
2626
PATH="${PWD}/bin:$PATH" \
2727
bundle exec cucumber --strict
28+
elif ruby -e "exit(RUBY_VERSION.to_f >= 3.4)"; then
29+
# 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
30+
sed -i '$i\class Hash; alias :__initialize :initialize; def initialize(*args, **_kw, &block) = __initialize(*args, &block); end' bin/cucumber
31+
bin/cucumber --strict
2832
else
2933
bundle exec cucumber --strict
3034
fi;

0 commit comments

Comments
 (0)