Skip to content

Instantly share code, notes, and snippets.

@apeckham
Created April 7, 2010 17:41
Show Gist options
  • Save apeckham/359177 to your computer and use it in GitHub Desktop.
Save apeckham/359177 to your computer and use it in GitHub Desktop.
capybara + rails + selenium + test::unit + jammit
require File.expand_path(File.dirname(__FILE__) + "/../test_helper")
require 'capybara/rails'
Jammit.load_configuration(Jammit::DEFAULT_CONFIG_PATH)
Jammit.packager.force = true
Jammit.packager.precache_all
class CapybaraTest < ActionController::IntegrationTest
fixtures :all
include Capybara
Capybara.default_driver = :selenium
self.use_transactional_fixtures = false
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment