aboutsummaryrefslogtreecommitdiffstats
path: root/actionview/test
diff options
context:
space:
mode:
authoreileencodes <eileencodes@gmail.com>2015-08-08 10:27:23 -0400
committereileencodes <eileencodes@gmail.com>2015-08-08 10:38:09 -0400
commit12f08acbacf823041dae27afd1a1a1458bb1e3fa (patch)
tree2d56c2698f1683dfc4c29f15a543ab91b97ad7e4 /actionview/test
parente7dd9069ca24d29f1c781d940c4b22083e111c86 (diff)
downloadrails-12f08acbacf823041dae27afd1a1a1458bb1e3fa.tar.gz
rails-12f08acbacf823041dae27afd1a1a1458bb1e3fa.tar.bz2
rails-12f08acbacf823041dae27afd1a1a1458bb1e3fa.zip
Fix deprecation warning in tests
Using the string version of the class reference is now deprecated when referencing middleware. This should be written as a class not as a string. Deprecation warning that this change fixes: ``` DEPRECATION WARNING: Passing strings or symbols to the middleware builder is deprecated, please change them to actual class references. For example: "ActionDispatch::ShowExceptions" => ActionDispatch::ShowExceptions ```
Diffstat (limited to 'actionview/test')
-rw-r--r--actionview/test/abstract_unit.rb14
1 files changed, 7 insertions, 7 deletions
diff --git a/actionview/test/abstract_unit.rb b/actionview/test/abstract_unit.rb
index 4635c645d0..35f520ed1c 100644
--- a/actionview/test/abstract_unit.rb
+++ b/actionview/test/abstract_unit.rb
@@ -147,13 +147,13 @@ class ActionDispatch::IntegrationTest < ActiveSupport::TestCase
def self.build_app(routes = nil)
RoutedRackApp.new(routes || ActionDispatch::Routing::RouteSet.new) do |middleware|
- middleware.use "ActionDispatch::ShowExceptions", ActionDispatch::PublicExceptions.new("#{FIXTURE_LOAD_PATH}/public")
- middleware.use "ActionDispatch::DebugExceptions"
- middleware.use "ActionDispatch::Callbacks"
- middleware.use "ActionDispatch::ParamsParser"
- middleware.use "ActionDispatch::Cookies"
- middleware.use "ActionDispatch::Flash"
- middleware.use "Rack::Head"
+ middleware.use ActionDispatch::ShowExceptions, ActionDispatch::PublicExceptions.new("#{FIXTURE_LOAD_PATH}/public")
+ middleware.use ActionDispatch::DebugExceptions
+ middleware.use ActionDispatch::Callbacks
+ middleware.use ActionDispatch::ParamsParser
+ middleware.use ActionDispatch::Cookies
+ middleware.use ActionDispatch::Flash
+ middleware.use Rack::Head
yield(middleware) if block_given?
end
end