From 4e5f7783955dc6794e53e47a89ea6dd60359e648 Mon Sep 17 00:00:00 2001 From: Samuel Cooper Date: Mon, 16 Apr 2018 20:30:46 +0200 Subject: [PATCH] Simplify rspec command --- wrapper | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/wrapper b/wrapper index 4466b20..379575c 100755 --- a/wrapper +++ b/wrapper @@ -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() {