Skip to content

Instantly share code, notes, and snippets.

@dchelimsky
Created April 14, 2010 13:36
Show Gist options
  • Save dchelimsky/365816 to your computer and use it in GitHub Desktop.
Save dchelimsky/365816 to your computer and use it in GitHub Desktop.
$ 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
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
autotest
@schadenfred
Copy link

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.
frederick@dell-desktop:
/rails_projects/rspectest$

@dchelimsky
Copy link
Author

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.

@frankjmattia
Copy link

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
Copy link

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