2013-06-14 16:57:31 +01:00
|
|
|
#!/bin/bash -e
|
|
|
|
|
|
|
|
rspec="bundle exec rspec"
|
|
|
|
|
|
|
|
if [ $SPEC_GROUP = 'controllers' ]
|
|
|
|
then
|
2013-09-16 15:19:02 +01:00
|
|
|
$rspec spec/controllers/*_spec.rb spec/controllers/admin/ spec/controllers/groups/ spec/controllers/projects/ spec/controllers/users/
|
|
|
|
elif [ $SPEC_GROUP = 'platform_controllers' ]
|
|
|
|
then
|
|
|
|
$rspec spec/controllers/platforms/
|
2013-06-14 16:57:31 +01:00
|
|
|
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
|