mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Remove deprecated Rails application fallback for integration testing
Set ActionDispatch.test_app instead.
This commit is contained in:
parent
b990921f05
commit
bf12c35087
2 changed files with 5 additions and 4 deletions
|
@ -1,3 +1,8 @@
|
|||
* Remove deprecated Rails application fallback for integration testing, set
|
||||
`ActionDispatch.test_app` instead.
|
||||
|
||||
*Carlos Antonio da Silva*
|
||||
|
||||
* Remove deprecated `page_cache_extension` config.
|
||||
|
||||
*Francesco Rodriguez*
|
||||
|
|
|
@ -489,10 +489,6 @@ module ActionDispatch
|
|||
@@app = nil
|
||||
|
||||
def self.app
|
||||
if !@@app && !ActionDispatch.test_app
|
||||
ActiveSupport::Deprecation.warn "Rails application fallback is deprecated and no longer works, please set ActionDispatch.test_app"
|
||||
end
|
||||
|
||||
@@app || ActionDispatch.test_app
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue