Skip to content

Commit

Permalink
Add check for bundler in spec-test script
Browse files Browse the repository at this point in the history
Signed-off-by: Rebecca Roberts <[email protected]>
Signed-off-by: Matthew Kocher <[email protected]>
  • Loading branch information
mkocher authored and rroberts2222 committed Apr 15, 2024
1 parent 43e2df8 commit 987b720
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions scripts/subtests/spec-test
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,15 @@ set -o pipefail

SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )"

set +e
bundler_executable=$(which bundle)
set -e
if [ -z "${bundler_executable}" ] || [ ! -x "${bundler_executable}" ]; then
gem install bundler
fi

pushd "${SCRIPT_DIR}/../.." > /dev/null
bundle install
bundle exec rspec
popd > /dev/null

0 comments on commit 987b720

Please sign in to comment.