Skip to content
tricon edited this page Feb 5, 2013 · 2 revisions

Test::Unit

In your test_helper.rb

class ActionController::TestCase
  include Devise::TestHelpers
end

class ActionDispatch::IntegrationTest
  include Warden::Test::Helpers
  Warden.test_mode!
end

Be sure to call Warden.test_reset! at the end of your tests!

Cucumber

In features/support/env.rb

#Warden Helpers
include Warden::Test::Helpers
Warden.test_mode!

After do
  Warden.test_reset!
end
Clone this wiki locally