I can rake spec
and all specs run.
However trying to run specs for one directory, as in
rake spec/models/ or rake spec/models/*.rb
does not provide any output or errors.
One option is that I can do
rspec spec/models/*.rb
or
rspec spec/models/
but I was wondering if I could stay within Rake.
Try rake spec:models
instead of rake spec/models
. Run rake -T | grep spec
to see all the available rake spec tasks.
UPDATE: Running your specs through rake spec
may be slower than running them through rspec spec
, said by the rspec-rails guys. Read de installation section of rspec-rails.
Use SPEC
env. variable:
rake spec SPEC=spec/models
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With