Created
September 7, 2011 17:16
-
-
Save uhlenbrock/1201154 to your computer and use it in GitHub Desktop.
Integration Testing with Capybara & Devise
This file contains 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
require 'test_helper' | |
require 'capybara/rails' | |
require 'devise/test_helpers' | |
class ActionController::IntegrationTest | |
include Capybara::DSL | |
include Warden::Test::Helpers | |
self.use_transactional_fixtures = false | |
def setup | |
login_as users(:admin) | |
end | |
def teardown | |
logout | |
Warden.test_reset! | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment