Allow bet to trigger rspec or minitest
This commit is contained in:
parent
fd0327b02c
commit
0c3fd7a84e
2 changed files with 9 additions and 1 deletions
2
aliases
2
aliases
|
@ -8,7 +8,7 @@ alias b="bundle"
|
|||
alias be="bundle exec"
|
||||
alias bea="bundle exec rails"
|
||||
alias ber="bundle exec rake"
|
||||
alias bet="bundle exec rspec"
|
||||
alias bet="test-rails"
|
||||
alias betd="bundle exec rspec --format documentation"
|
||||
alias c="clear"
|
||||
alias dc="docker-compose"
|
||||
|
|
|
@ -103,6 +103,14 @@ function stopwatch {
|
|||
done
|
||||
}
|
||||
|
||||
function test-rails {
|
||||
if bundle exec rspec --help > /dev/null 2>&1; then
|
||||
bundle exec rspec
|
||||
else
|
||||
bundle exec rails test
|
||||
fi
|
||||
}
|
||||
|
||||
function yarn-exec {
|
||||
(PATH=$(yarn bin):$PATH; eval $@;)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue