[rspec-users] spec.opts: questions about formatters, etc.

Craig Demyanovich cdemyanovich at gmail.com
Mon Mar 19 21:04:06 EDT 2007

On Mar 19, 2007, at 12:07 PM, Scott Taylor wrote:

> Questions concerning spec.opts:
> 1.  Am I correct in believing that each option should go on a
> separate line of spec.opts in the rails spec directory?  If this is
> so, why is it so?
> 2.  Using a formatter in spec.opts doesn't seem to work.  Here is my
> spec.opts file:
> --colour
> -f s
> and this is what happens when I run the rake task:
> Couldn't find formatter class  s
> Make sure the --require option is specified *before* --format

I ran into this problem recently. I solved it like this:


I thought I'd write it all out since it was going in spec.opts and  
probably wouldn't be looked at again for quite some time.


More information about the rspec-users mailing list