When I run rspec 2 with rails 3 I use
rake rspec
sometimes I'd like to use a different formatter, perhaps doc.
rake rspec --format doc
but unfortunately the option doesn't make it through to the rspec runner. How can I choose a different format when I run the command?
You can add default options to an .rspec file in the rails root folder. e.g.
--colour
--format documentation
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