Skip to content

Instantly share code, notes, and snippets.

@chyld
Created December 11, 2012 16:03
Show Gist options
  • Save chyld/4259690 to your computer and use it in GitHub Desktop.
Save chyld/4259690 to your computer and use it in GitHub Desktop.
capybara + rspec + launchy + database cleaner
group :development, :test do
gem 'pry-rails'
gem 'capybara'
gem 'rspec-rails'
gem 'launchy'
gem 'database_cleaner'
end
rails g rspec:install
added to spec_helper.rb
require 'capybara/rspec'
tests in spec/features
feature_spec.rb
RAILS_ENV=test rake db:migrate
edit .rspec file
rspec spec/features/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment