Created
December 23, 2010 17:59
-
-
Save elight/753310 to your computer and use it in GitHub Desktop.
Excerpt from my test_helper
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class SeleniumTest < ActionController::IntegrationTest | |
self.use_transactional_fixtures = false | |
def setup | |
DatabaseCleaner.clean | |
Capybara.current_driver = :selenium | |
super | |
end | |
def teardown | |
Capybara.use_default_driver | |
super | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment