Skip to content

Instantly share code, notes, and snippets.

@drapergeek
Last active December 12, 2015 04:59
Show Gist options
  • Save drapergeek/4718737 to your computer and use it in GitHub Desktop.
Save drapergeek/4718737 to your computer and use it in GitHub Desktop.
Basic Capybara Setup
  • Add the following to your gem file
group :test do
  gem 'rspec-rails'
  gem 'capybara'
  gem 'launchy'
end
  • Run bundle install
  • Add the rspec config
rails g rspec:install
  • Make a directory for the features:
mkdir spec/features
  • Create your first feature - Example: 'user_submits_application_spec.rb'
  • Be sure to move over your database: rake db:test:prepare

Other Notes:

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