18 lines
505 B
Bash
18 lines
505 B
Bash
|
#!/bin/bash -e
|
||
|
|
||
|
rspec="bundle exec rspec"
|
||
|
|
||
|
if [ $SPEC_GROUP = 'controllers' ]
|
||
|
then
|
||
|
$rspec spec/controllers/*_spec.rb spec/controllers/admin/ spec/controllers/groups/ spec/controllers/platforms/ spec/controllers/projects/ spec/controllers/users/
|
||
|
elif [ $SPEC_GROUP = 'api' ]
|
||
|
then
|
||
|
$rspec spec/controllers/api/
|
||
|
elif [ $SPEC_GROUP = 'models' ]
|
||
|
then
|
||
|
$rspec spec/models/
|
||
|
elif [ $SPEC_GROUP = 'others' ]
|
||
|
then
|
||
|
$rspec spec/helpers/ spec/integration/ spec/lib/ spec/mailers/ spec/mailers/ spec/routing/
|
||
|
fi
|