public
Last active

  • Download Gist
output
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
$ 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
setup
1 2 3 4 5 6 7 8 9 10
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

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$

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

@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.

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.