Scott Taylor
2007-Mar-01 07:58 UTC
[rspec-users] RC1, Rails, and problems with multiple options in spec.opts
I am having inconsistent output with multiple options in the spec.opts file. I can, for instance, pass --color or --colour, or, separately, use --drb. But when combining them I get: /opt/local/lib/ruby/1.8/optparse.rb:1381:in `complete'': invalid option: --options --color --drb (OptionParser::InvalidOption) from /opt/local/lib/ruby/1.8/optparse.rb:1379:in `catch'' from /opt/local/lib/ruby/1.8/optparse.rb:1379:in `complete'' from /opt/local/lib/ruby/1.8/optparse.rb:1212:in `order!'' from /opt/local/lib/ruby/1.8/optparse.rb:1205:in `catch'' from /opt/local/lib/ruby/1.8/optparse.rb:1205:in `order!'' from /opt/local/lib/ruby/1.8/optparse.rb:1279:in `permute!'' from /opt/local/lib/ruby/1.8/optparse.rb:1300:in `parse!'' from /Users/smtlaissezfaire/Sites/rails/dictionary/vendor/ plugins/rspec/lib/spec/runner/option_parser.rb:180:in `parse'' ... 9 levels... from /Users/smtlaissezfaire/Sites/rails/dictionary/vendor/ plugins/rspec/lib/spec/runner/option_parser.rb:180:in `parse'' from /Users/smtlaissezfaire/Sites/rails/dictionary/vendor/ plugins/rspec/lib/spec/runner/option_parser.rb:13:in `create_context_runner'' from /Users/smtlaissezfaire/Sites/rails/dictionary/vendor/ plugins/rspec/lib/spec/runner/command_line.rb:12:in `run'' from /Users/smtlaissezfaire/Sites/rails/dictionary/vendor/ plugins/rspec/bin/spec:4 rake aborted! Is anyone else having this problem? I''m on Mac OS X.4.8, using edge rails, ruby 1.8.5, and RC1 Best, Scott Taylor
johnnybutler7
2007-Mar-07 17:48 UTC
[rspec-users] RC1, Rails, and problems with multiple options in spec.opts
I too have this problem. What is the format for adding options to spec.opts file, i cant seem to find anything on the web. Are spaces include so for instance are any of the below valid?: --drb --colour --drb--colour --drb colour --drb -colour JB Scott Taylor-6 wrote:> > I am having inconsistent output with multiple options in the > spec.opts file. I can, for instance, pass --color or --colour, or, > separately, use --drb. But when combining them I get: > > /opt/local/lib/ruby/1.8/optparse.rb:1381:in `complete'': invalid > option: --options --color --drb (OptionParser::InvalidOption) > from /opt/local/lib/ruby/1.8/optparse.rb:1379:in `catch'' > from /opt/local/lib/ruby/1.8/optparse.rb:1379:in `complete'' > from /opt/local/lib/ruby/1.8/optparse.rb:1212:in `order!'' > from /opt/local/lib/ruby/1.8/optparse.rb:1205:in `catch'' > from /opt/local/lib/ruby/1.8/optparse.rb:1205:in `order!'' > from /opt/local/lib/ruby/1.8/optparse.rb:1279:in `permute!'' > from /opt/local/lib/ruby/1.8/optparse.rb:1300:in `parse!'' > from /Users/smtlaissezfaire/Sites/rails/dictionary/vendor/ > plugins/rspec/lib/spec/runner/option_parser.rb:180:in `parse'' > ... 9 levels... > from /Users/smtlaissezfaire/Sites/rails/dictionary/vendor/ > plugins/rspec/lib/spec/runner/option_parser.rb:180:in `parse'' > from /Users/smtlaissezfaire/Sites/rails/dictionary/vendor/ > plugins/rspec/lib/spec/runner/option_parser.rb:13:in > `create_context_runner'' > from /Users/smtlaissezfaire/Sites/rails/dictionary/vendor/ > plugins/rspec/lib/spec/runner/command_line.rb:12:in `run'' > from /Users/smtlaissezfaire/Sites/rails/dictionary/vendor/ > plugins/rspec/bin/spec:4 > rake aborted! > > Is anyone else having this problem? > > I''m on Mac OS X.4.8, using edge rails, ruby 1.8.5, and RC1 > > Best, > > Scott Taylor > _______________________________________________ > rspec-users mailing list > rspec-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/rspec-users > >-- View this message in context: http://www.nabble.com/RC1%2C-Rails%2C-and-problems-with-multiple-options-in-spec.opts-tf3330529.html#a9358217 Sent from the rspec-users mailing list archive at Nabble.com.
David Chelimsky
2007-Mar-07 18:37 UTC
[rspec-users] RC1, Rails, and problems with multiple options in spec.opts
On 3/7/07, johnnybutler7 <JohnnyButler7 at gmail.com> wrote:> > I too have this problem. What is the format for adding options to spec.opts > file, i cant seem to find anything on the web. Are spaces include so for > instance are any of the below valid?: > > --drb --colour > --drb--colour > --drb colour > --drb -colourTry putting each option on a separate line. That works for me, though --colour won''t be reflected in the --drb output. You should be able to, however, use something like this: --drb --format specdoc ... for example.> > > JB > > Scott Taylor-6 wrote: > > > > I am having inconsistent output with multiple options in the > > spec.opts file. I can, for instance, pass --color or --colour, or, > > separately, use --drb. But when combining them I get: > > > > /opt/local/lib/ruby/1.8/optparse.rb:1381:in `complete'': invalid > > option: --options --color --drb (OptionParser::InvalidOption) > > from /opt/local/lib/ruby/1.8/optparse.rb:1379:in `catch'' > > from /opt/local/lib/ruby/1.8/optparse.rb:1379:in `complete'' > > from /opt/local/lib/ruby/1.8/optparse.rb:1212:in `order!'' > > from /opt/local/lib/ruby/1.8/optparse.rb:1205:in `catch'' > > from /opt/local/lib/ruby/1.8/optparse.rb:1205:in `order!'' > > from /opt/local/lib/ruby/1.8/optparse.rb:1279:in `permute!'' > > from /opt/local/lib/ruby/1.8/optparse.rb:1300:in `parse!'' > > from /Users/smtlaissezfaire/Sites/rails/dictionary/vendor/ > > plugins/rspec/lib/spec/runner/option_parser.rb:180:in `parse'' > > ... 9 levels... > > from /Users/smtlaissezfaire/Sites/rails/dictionary/vendor/ > > plugins/rspec/lib/spec/runner/option_parser.rb:180:in `parse'' > > from /Users/smtlaissezfaire/Sites/rails/dictionary/vendor/ > > plugins/rspec/lib/spec/runner/option_parser.rb:13:in > > `create_context_runner'' > > from /Users/smtlaissezfaire/Sites/rails/dictionary/vendor/ > > plugins/rspec/lib/spec/runner/command_line.rb:12:in `run'' > > from /Users/smtlaissezfaire/Sites/rails/dictionary/vendor/ > > plugins/rspec/bin/spec:4 > > rake aborted! > > > > Is anyone else having this problem? > > > > I''m on Mac OS X.4.8, using edge rails, ruby 1.8.5, and RC1 > > > > Best, > > > > Scott Taylor > > _______________________________________________ > > rspec-users mailing list > > rspec-users at rubyforge.org > > http://rubyforge.org/mailman/listinfo/rspec-users > > > > > > -- > View this message in context: http://www.nabble.com/RC1%2C-Rails%2C-and-problems-with-multiple-options-in-spec.opts-tf3330529.html#a9358217 > Sent from the rspec-users mailing list archive at Nabble.com. > > _______________________________________________ > rspec-users mailing list > rspec-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/rspec-users >
Coda Hale
2007-Mar-07 18:47 UTC
[rspec-users] RC1, Rails, and problems with multiple options in spec.opts
You need to have a single option per line. E.g.: --drb --color --diff On 3/7/07, johnnybutler7 <JohnnyButler7 at gmail.com> wrote:> > I too have this problem. What is the format for adding options to spec.opts > file, i cant seem to find anything on the web. Are spaces include so for > instance are any of the below valid?: > > --drb --colour > --drb--colour > --drb colour > --drb -colour > > > JB > > Scott Taylor-6 wrote: > > > > I am having inconsistent output with multiple options in the > > spec.opts file. I can, for instance, pass --color or --colour, or, > > separately, use --drb. But when combining them I get: > > > > /opt/local/lib/ruby/1.8/optparse.rb:1381:in `complete'': invalid > > option: --options --color --drb (OptionParser::InvalidOption) > > from /opt/local/lib/ruby/1.8/optparse.rb:1379:in `catch'' > > from /opt/local/lib/ruby/1.8/optparse.rb:1379:in `complete'' > > from /opt/local/lib/ruby/1.8/optparse.rb:1212:in `order!'' > > from /opt/local/lib/ruby/1.8/optparse.rb:1205:in `catch'' > > from /opt/local/lib/ruby/1.8/optparse.rb:1205:in `order!'' > > from /opt/local/lib/ruby/1.8/optparse.rb:1279:in `permute!'' > > from /opt/local/lib/ruby/1.8/optparse.rb:1300:in `parse!'' > > from /Users/smtlaissezfaire/Sites/rails/dictionary/vendor/ > > plugins/rspec/lib/spec/runner/option_parser.rb:180:in `parse'' > > ... 9 levels... > > from /Users/smtlaissezfaire/Sites/rails/dictionary/vendor/ > > plugins/rspec/lib/spec/runner/option_parser.rb:180:in `parse'' > > from /Users/smtlaissezfaire/Sites/rails/dictionary/vendor/ > > plugins/rspec/lib/spec/runner/option_parser.rb:13:in > > `create_context_runner'' > > from /Users/smtlaissezfaire/Sites/rails/dictionary/vendor/ > > plugins/rspec/lib/spec/runner/command_line.rb:12:in `run'' > > from /Users/smtlaissezfaire/Sites/rails/dictionary/vendor/ > > plugins/rspec/bin/spec:4 > > rake aborted! > > > > Is anyone else having this problem? > > > > I''m on Mac OS X.4.8, using edge rails, ruby 1.8.5, and RC1 > > > > Best, > > > > Scott Taylor > > _______________________________________________ > > rspec-users mailing list > > rspec-users at rubyforge.org > > http://rubyforge.org/mailman/listinfo/rspec-users > > > > > > -- > View this message in context: http://www.nabble.com/RC1%2C-Rails%2C-and-problems-with-multiple-options-in-spec.opts-tf3330529.html#a9358217 > Sent from the rspec-users mailing list archive at Nabble.com. > > _______________________________________________ > rspec-users mailing list > rspec-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/rspec-users >-- Coda Hale http://blog.codahale.com
aslak hellesoy
2007-Mar-07 23:00 UTC
[rspec-users] RC1, Rails, and problems with multiple options in spec.opts
No, everything must be on a separate line. On 3/7/07, David Chelimsky <dchelimsky at gmail.com> wrote:> On 3/7/07, johnnybutler7 <JohnnyButler7 at gmail.com> wrote: > > > > I too have this problem. What is the format for adding options to > spec.opts > > file, i cant seem to find anything on the web. Are spaces include so for > > instance are any of the below valid?: > > > > --drb --colour > > --drb--colour > > --drb colour > > --drb -colour > > Try putting each option on a separate line. That works for me, though > --colour won''t be reflected in the --drb output. You should be able > to, however, use something like this: > > --drb > --format specdoc > > ... for example. > > > > > > > JB > > > > Scott Taylor-6 wrote: > > > > > > I am having inconsistent output with multiple options in the > > > spec.opts file. I can, for instance, pass --color or --colour, or, > > > separately, use --drb. But when combining them I get: > > > > > > /opt/local/lib/ruby/1.8/optparse.rb:1381:in `complete'': invalid > > > option: --options --color --drb (OptionParser::InvalidOption) > > > from /opt/local/lib/ruby/1.8/optparse.rb:1379:in `catch'' > > > from /opt/local/lib/ruby/1.8/optparse.rb:1379:in `complete'' > > > from /opt/local/lib/ruby/1.8/optparse.rb:1212:in `order!'' > > > from /opt/local/lib/ruby/1.8/optparse.rb:1205:in `catch'' > > > from /opt/local/lib/ruby/1.8/optparse.rb:1205:in `order!'' > > > from /opt/local/lib/ruby/1.8/optparse.rb:1279:in `permute!'' > > > from /opt/local/lib/ruby/1.8/optparse.rb:1300:in `parse!'' > > > from /Users/smtlaissezfaire/Sites/rails/dictionary/vendor/ > > > plugins/rspec/lib/spec/runner/option_parser.rb:180:in `parse'' > > > ... 9 levels... > > > from /Users/smtlaissezfaire/Sites/rails/dictionary/vendor/ > > > plugins/rspec/lib/spec/runner/option_parser.rb:180:in `parse'' > > > from /Users/smtlaissezfaire/Sites/rails/dictionary/vendor/ > > > plugins/rspec/lib/spec/runner/option_parser.rb:13:in > > > `create_context_runner'' > > > from /Users/smtlaissezfaire/Sites/rails/dictionary/vendor/ > > > plugins/rspec/lib/spec/runner/command_line.rb:12:in `run'' > > > from /Users/smtlaissezfaire/Sites/rails/dictionary/vendor/ > > > plugins/rspec/bin/spec:4 > > > rake aborted! > > > > > > Is anyone else having this problem? > > > > > > I''m on Mac OS X.4.8, using edge rails, ruby 1.8.5, and RC1 > > > > > > Best, > > > > > > Scott Taylor > > > _______________________________________________ > > > rspec-users mailing list > > > rspec-users at rubyforge.org > > > http://rubyforge.org/mailman/listinfo/rspec-users > > > > > > > > > > -- > > View this message in context: > http://www.nabble.com/RC1%2C-Rails%2C-and-problems-with-multiple-options-in-spec.opts-tf3330529.html#a9358217 > > Sent from the rspec-users mailing list archive at Nabble.com. > > > > _______________________________________________ > > 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 >