diff --git a/bin/test b/bin/test index 8fef6665..e49467c5 100755 --- a/bin/test +++ b/bin/test @@ -1,16 +1,8 @@ -#!/usr/bin/env ruby -# frozen_string_literal: true - -# -# This file was generated by Bundler. -# -# The application 'minitest' is installed as part of a gem, and -# this file is here to facilitate running it. -# - -ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../Gemfile", __dir__) - -require "rubygems" -require "bundler/setup" - -load Gem.bin_path("minitest", "minitest") +#!/usr/bin/env bash +if [[ 2 -eq $# ]]; then + bundle exec rake TEST="$1" TESTOPTS="-n='/$2/'" +elif [[ 1 -eq $# ]]; then + bundle exec rake TEST="$1" +else + bundle exec rake "$@" +fi