Hi I recently inherited a project in which the former dev was not familiar with rails, and decided to put a lot of important logic into the view helpers.
cla
To be able to use Devise in your tests, you should add
include Devise::TestHelpers
to each ActionController::TestCase instance. Then in the setup method you do
ActionController::TestCase
setup
sign_in users(:one)
instead of
current_user = users(:one)
All your functional tests should work fine, then.