include Devise::TestHelpers --- NoMethodError: undefined method `env' for nil:NilClass

126 views
Skip to first unread message

Alex

unread,
Sep 27, 2010, 5:58:23 PM9/27/10
to devise-google-group
I'm trying to use the devise test helpers while doing integration
tests but I'm getting this error once I include Devise::TestHelpers in
my integration test helper.

NoMethodError: undefined method `env' for nil:NilClass
/home/alex/.rvm/gems/ruby-1.9.2-p0/gems/activesupport-3.0.0/lib/active_support/whiny_nil.rb:48:in
`method_missing'
/home/alex/.rvm/gems/ruby-1.9.2-p0/bundler/gems/devise-5c928df/lib/devise/test_helpers.rb:55:in
`setup_controller_for_warden'
/home/alex/.rvm/gems/ruby-1.9.2-p0/gems/activesupport-3.0.0/lib/active_support/callbacks.rb:429:in
`_run_setup_callbacks'
/home/alex/.rvm/gems/ruby-1.9.2-p0/gems/activesupport-3.0.0/lib/active_support/testing/setup_and_teardown.rb:34:in
`run'

I'm using the git version of devise.

Am I missing some setup or is this a bug?

-Alex

Alex

unread,
Sep 27, 2010, 7:18:16 PM9/27/10
to devise-google-group
Ahh, nevermind, I see further down on the docs that I shouldn't use
these helpers in integration tests.

-Alex

Reply all
Reply to author
Forward
0 new messages