This project is archived and is in readonly mode.

#6492 new
Josep M. Bach

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

Reported by Josep M. Bach | March 1st, 2011 @ 11:53 AM

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).

Comments and changes to this ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

<h2 style="font-size: 14px">Tickets have moved to Github</h2>

The new ticket tracker is available at <a href=""></a>

People watching this ticket