Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to format rspec 2 output with rails 3

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?

like image 504
opsb Avatar asked Feb 26 '11 11:02

opsb


1 Answers

You can add default options to an .rspec file in the rails root folder. e.g.

--colour
--format documentation
like image 84
Steve Avatar answered Sep 19 '22 12:09

Steve