Skip to content


ActionDispatch::TestRequest - Undefined method `env_config' when Rails.application is nil #881

lighthouse-import opened this Issue · 1 comment

1 participant


Imported from Lighthouse. Original ticket at:
Created by Josep M. Bach - 2011-03-01 15:14:04 UTC

When instantiating an ActionDispatch::TestRequest, it raises an undefined method error when Rails.application is nil. Although it checks for defined?(Rails.application), it fails to check whether the application is really present.

Included patch adds the additional check needed (with tests).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.