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