Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
$ autotest
loading autotest/rails_rspec2
style: RailsRspec2
/Users/dchelimsky/.rvm/rubies/ruby-1.8.7-p249/bin/ruby -rrubygems /Users/dchelimsky/.rvm/gems/ruby-1.8.7-p249/gems/rspec-core-2.0.0.beta.6/bin/rspec /Users/dchelimsky/tmp/example/spec/models/widget_spec.rb /Users/dchelimsky/tmp/example/spec/views/widgets/show.html.erb_spec.rb /Users/dchelimsky/tmp/example/spec/views/widgets/edit.html.erb_spec.rb /Users/dchelimsky/tmp/example/spec/views/widgets/new.html.erb_spec.rb /Users/dchelimsky/tmp/example/spec/controllers/widgets_controller_spec.rb /Users/dchelimsky/tmp/example/spec/views/widgets/index.html.erb_spec.rb
Finished in 0.13672 seconds
20 examples, 0 failures, 1 pending
Widget add some examples to (or delete) /Users/dchelimsky/tmp/example/spec/models/widget_spec.rb
# /Users/dchelimsky/tmp/example/spec/models/widget_spec.rb:4
rails example
cd example
echo "gem 'rspec-rails', '>= 2.0.0.beta.7'" >> Gemfile
echo "gem 'autotest-rails'" >> Gemfile
echo "gem 'autotest'" >> Gemfile
bundle install
script/rails g rspec:install
script/rails g scaffold widget name:string
rake db:migrate && rake db:test:prepare

Hi David,

Thanks for all your work on this. Rspec appears to be working but I'm still having trouble getting autotest to fire.

rederick@dell-desktop:/rails_projects/rspectest$ autotest
loading autotest/rails_rspec2.0.0.beta.8
Autotest style autotest/rails_rspec2.0.0.beta.8 doesn't seem to exist. Aborting.


dchelimsky commented May 2, 2010

fdschoeneman - can you post this to the rspec list? There are a lot of moving parts here (rails 3, autotest, rspec versions and different versions of ruby) and you're not the only one having trouble. Hopefully if enough people get involved we'll be able to get to the bottom of the problem.

I DID get the same error - the dead easy fix for my setup was this
bundle exec autotest

as opposed to just running autotest

exviva commented Jul 17, 2010

@frankjmattia I just came up with the same idea, although I hope I'll only be a temporary workaround until the beta chaos calms down. I wrote a short article about Rails 3 and ZenTest just not forget, since I couldn't find any detailed write-up.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment