[rspec-users] RC1, Rails, and problems with multiple options in spec.opts

Scott Taylor mailing_lists at railsnewbie.com
Thu Mar 1 02:58:31 EST 2007


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


More information about the rspec-users mailing list