#!/usr/bin/env bash

args=$@
[[ "$#" != "1" ]] && args=spec/unit/*

pushd $SRC_DIR
  . bin/check-ruby-version

  echo "Running unit tests with Ruby version $RUBY_VERSION..."
  bundle install
  bundle exec rspec ${args}
popd
