Scott Taylor
2007-Mar-19 16:07 UTC
[rspec-users] spec.opts: questions about formatters, etc.
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 Scott Taylor
Chad Humphries
2007-Mar-19 16:19 UTC
[rspec-users] spec.opts: questions about formatters, etc.
Scott, I use -cfs in my spec.opts (when does the same as --colour -f s) and it works great. I''m not sure about the single/multi-line bits though. -Chad On 3/19/07, Scott Taylor <mailing_lists at railsnewbie.com> 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 > > Scott Taylor > _______________________________________________ > rspec-users mailing list > rspec-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/rspec-users >
Matthijs Langenberg
2007-Mar-19 17:41 UTC
[rspec-users] spec.opts: questions about formatters, etc.
Thanks for the tip Chad! On 3/19/07, Chad Humphries <chad at spicycode.com> wrote:> Scott, > > I use -cfs in my spec.opts (when does the same as --colour -f s) and > it works great. I''m not sure about the single/multi-line bits though. > > -Chad > > On 3/19/07, Scott Taylor <mailing_lists at railsnewbie.com> 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 > > > > Scott Taylor > > _______________________________________________ > > rspec-users mailing list > > rspec-users at rubyforge.org > > http://rubyforge.org/mailman/listinfo/rspec-users > > > _______________________________________________ > rspec-users mailing list > rspec-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/rspec-users >
aslak hellesoy
2007-Mar-20 00:15 UTC
[rspec-users] spec.opts: questions about formatters, etc.
On 3/19/07, Scott Taylor <mailing_lists at railsnewbie.com> 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? >It''s so simply because I was lazy when implementing it. Please file an RFE if you want to be able to put them all on one line. Aslak> 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 > > Scott Taylor > _______________________________________________ > rspec-users mailing list > rspec-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/rspec-users >
Craig Demyanovich
2007-Mar-20 01:04 UTC
[rspec-users] spec.opts: questions about formatters, etc.
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* --formatI ran into this problem recently. I solved it like this: --colour --format specdoc 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. Craig