Skip to content

Loading…

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

Closed
lighthouse-import opened this Issue · 1 comment

1 participant

@lighthouse-import

Imported from Lighthouse. Original ticket at: http://rails.lighthouseapp.com/projects/8994/tickets/6492
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.