Hack in some more ruby test running
This commit is contained in:
parent
ce3c1690cb
commit
5832f20aec
1 changed files with 12 additions and 2 deletions
|
@ -111,9 +111,19 @@ function stopwatch {
|
||||||
|
|
||||||
function test-rails {
|
function test-rails {
|
||||||
if bundle exec rspec --help > /dev/null 2>&1; then
|
if bundle exec rspec --help > /dev/null 2>&1; then
|
||||||
|
if [ -d spec ]; then
|
||||||
bundle exec rspec $@
|
bundle exec rspec $@
|
||||||
else
|
else
|
||||||
|
ruby *_test.rb
|
||||||
|
fi
|
||||||
|
elif bundle exec rails version > /dev/null 2>&1; then
|
||||||
bundle exec rails test $@
|
bundle exec rails test $@
|
||||||
|
else
|
||||||
|
if [[ $# > 0 ]]; then
|
||||||
|
ruby $@
|
||||||
|
else
|
||||||
|
ruby *_test.rb
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue