Hack in some more ruby test running

This commit is contained in:
Andrew Tomaka 2021-06-18 22:10:46 -04:00
parent ce3c1690cb
commit 5832f20aec
Signed by: atomaka
GPG key ID: 61209BF70A5B18BE

View file

@ -111,9 +111,19 @@ function stopwatch {
function test-rails {
if bundle exec rspec --help > /dev/null 2>&1; then
bundle exec rspec $@
else
if [ -d spec ]; then
bundle exec rspec $@
else
ruby *_test.rb
fi
elif bundle exec rails version > /dev/null 2>&1; then
bundle exec rails test $@
else
if [[ $# > 0 ]]; then
ruby $@
else
ruby *_test.rb
fi
fi
}