On 16 July 2011 22:22, 7stud -- <[email protected]> wrote: > I changed some gem versions in my Gemfile, and then I did: > > $ bundle install > ... > Using rspec (2.0.1) > Using rspec-rails (2.0.1) > Using spork (0.8.4) ****************<<<<<<<<<<<****** > Using sqlite3-ruby (1.2.5) > Using webrat (0.7.1) > Your bundle is complete! Use `bundle show [gemname]` to see where a > bundled gem is installed.
What does bundle show spork show? Colin > > > Now I want to run spork 0.8.4 (as listed in the Gemfile): > > $ bundle exec spork > /Users/Me/.rvm/gems/ruby-1.9.2-p180@rails3tutorial/gems/spork-0.9.0.rc8/lib/spork/test_framework/cucumber.rb:2: > warning: already initialized constant DEFAULT_PORT > /Users/Me/.rvm/gems/ruby-1.9.2-p180@rails3tutorial/gems/spork-0.9.0.rc8/lib/spork/test_framework/cucumber.rb:3: > warning: already initialized constant HELPER_FILE > /Users/Me/.rvm/gems/ruby-1.9.2-p180@rails3tutorial/gems/spork-0.9.0.rc8/lib/spork/test_framework/rspec.rb:2: > warning: already initialized constant DEFAULT_PORT > /Users/Me/.rvm/gems/ruby-1.9.2-p180@rails3tutorial/gems/spork-0.9.0.rc8/lib/spork/test_framework/rspec.rb:3: > warning: already initialized constant HELPER_FILE > Using RSpec > Loading Spork.prefork block... > Spork is ready and listening on 8989! > > It appears to me that the spork version being executed is the version > that used to be in the Gemfile--not the version that is currently > specified in the gemfile. I don't really care what version of spork > executes, but autotest stopped working when I updated some gems to newer > versions in my Gemfile, so I tried specifying all the old versions > again, but spork > > Here is the autotest error: > > /Users/Me/.rvm/rubies/ruby-1.9.2-p180/bin/ruby -rrubygems -S > /Users/Me/.rvm/gems/ruby-1.9.2-p180@rails3tutorial/gems/rspec-core-2.6.4/bin/rspec > --tty > '/Users/Me/rails_projects/sample_app/spec/controllers/pages_controller_spec.rb' > '/Users/Me/rails_projects/sample_app/spec/controllers/users_controller_spec.rb' > '/Users/Me/rails_projects/sample_app/spec/models/user_spec.rb' > '/Users/Me/rails_projects/sample_app/spec/requests/layout_links_spec.rb' > Exception encountered: #<OptionParser::InvalidOption: --tty> > backtrace: -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

