Skip to content
This repository has been archived by the owner on Nov 30, 2024. It is now read-only.

Commit

Permalink
Inline hash fix for cucumber
Browse files Browse the repository at this point in the history
  • Loading branch information
JonRowe committed Jul 15, 2024
1 parent ea7659a commit 1e4346c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions script/functions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,12 @@ function run_cukes {
RUBYOPT="-I${PWD}/../bundle -rbundler/setup" \
PATH="${PWD}/bin:$PATH" \
bin/cucumber --strict
elif is_ruby_head; then
sed -i '$i\class Hash; alias :__initialize :initalize; def initialize(*args, **_kw, &block) = __initialize(*args, &block); end' bin/cucumber

RUBYOPT="${RUBYOPT} -I${PWD}/../bundle -rbundler/setup" \
PATH="${PWD}/bin:$PATH" \
bin/cucumber --strict
else
# Prepare RUBYOPT for scenarios that are shelling out to ruby,
# and PATH for those that are using `rspec` or `rake`.
Expand Down

0 comments on commit 1e4346c

Please sign in to comment.