Skip to content

Commit

Permalink
Simplify rspec command
Browse files Browse the repository at this point in the history
  • Loading branch information
CSammy committed Apr 16, 2018
1 parent 4a54b78 commit 4e5f778
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions wrapper
Original file line number Diff line number Diff line change
Expand Up @@ -132,11 +132,7 @@ dia_restart() {
dia_rspec() {
! dia_is_configured && exit_unconfigured
docker-compose run --rm diaspora /bin/sh -c 'RAILS_ENV="test" bin/rake db:create db:migrate assets:generate_error_pages'
if [ $# -eq 0 ]; then
docker-compose run --rm diaspora bin/rake spec
else
docker-compose run --rm diaspora bin/rspec "$@"
fi
docker-compose run --rm diaspora bin/rspec "$@"
}

dia_setup() {
Expand Down

0 comments on commit 4e5f778

Please sign in to comment.