[rspec-users] RSpec Error - "Invalid Option"

David Chelimsky dchelimsky at gmail.com
Wed Feb 16 02:53:08 EST 2011


On Feb 15, 2011, at 11:43 PM, Trenton Scott wrote:

> I keep getting an issue when running RSpec with Autotest. My
> ~/.autotest file looks like this:

<snip/>

> Any thoughts on what I'm doing wrong?
> ==ERROR BEGINS==
> bundle exec /Users/TTS/.rvm/rubies/ruby-1.9.2-p136/bin/ruby -S /
> Users/
> TTS/.rvm/gems/ruby-1.9.2-p136/gems/rspec-core-2.3.1/bin/rspec --tty
> '/

^^ rspec-core-2.3.1 ^^

> Users/TTS/Rails/sample_app/spec/controllers/pages_controller_spec.rb'
> '/Users/TTS/Rails/sample_app/spec/controllers/
> sessions_controller_spec.rb' '/Users/TTS/Rails/sample_app/spec/
> controllers/users_controller_spec.rb' '/Users/TTS/Rails/sample_app/
> spec/models/user_spec.rb' '/Users/TTS/Rails/sample_app/spec/requests/
> layout_links_spec.rb' '/Users/TTS/Rails/sample_app/spec/requests/
> users_spec.rb'
> /Users/TTS/.rvm/gems/ruby-1.9.2-p136/gems/rspec-core-2.0.1/lib/rspec/
> core/option_parser.rb:18:in `parse!': invalid option: --tty

^^ rspec-core-2.0.1 ^^

See Gotchas section on http://relishapp.com/rspec/rspec-core/v/2-5/file/autotest for an explanation and solution.

Cheers,
David


More information about the rspec-users mailing list