Skip to content

Instantly share code, notes, and snippets.

@aligo
Created January 7, 2013 02:39
Show Gist options
  • Save aligo/4471875 to your computer and use it in GitHub Desktop.
Save aligo/4471875 to your computer and use it in GitHub Desktop.
speed up capybara, poltergeist & sprockets
# spec/support/capybara.rb
require 'capybara/poltergeist'
Capybara.javascript_driver = :poltergeist
Capybara.default_wait_time = 5
Capybara.server_port = 3001
Capybara.app_host = "http://localhost:3001"
ActionController::Base.asset_host = Capybara.app_host
#config/environments/test.rb
config.assets.enabled = true
config.assets.debug = true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment