Testing devise with shoulda
Posted
by cristian
on Stack Overflow
See other posts from Stack Overflow
or by cristian
Published on 2010-05-15T07:42:05Z
Indexed on
2010/05/15
7:44 UTC
Read the original article
Hit count: 425
Hello,
I'm having some difficulties in testing devise with shoulda:
2) Error:
test: handle :index logged as admin should redirect to Daily page.
(Admin::DailyClosesControllerTest):
NoMethodError: undefined method `env' for nil:NilClass
devise (1.0.6) [v] lib/devise/test_helpers.rb:52:in
`setup_controller_for_warden'
I have this in my test_helper:
include Devise::TestHelpers
Thoughts ? Thanks in advance,
Cristi
© Stack Overflow or respective owner