diff options
author | eileencodes <eileencodes@gmail.com> | 2015-08-08 10:27:23 -0400 |
---|---|---|
committer | eileencodes <eileencodes@gmail.com> | 2015-08-08 10:38:09 -0400 |
commit | 12f08acbacf823041dae27afd1a1a1458bb1e3fa (patch) | |
tree | 2d56c2698f1683dfc4c29f15a543ab91b97ad7e4 /actionpack | |
parent | e7dd9069ca24d29f1c781d940c4b22083e111c86 (diff) | |
download | rails-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 'actionpack')
-rw-r--r-- | actionpack/test/dispatch/session/mem_cache_store_test.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/test/dispatch/session/mem_cache_store_test.rb b/actionpack/test/dispatch/session/mem_cache_store_test.rb index 6e9107ecbf..3fed9bad4f 100644 --- a/actionpack/test/dispatch/session/mem_cache_store_test.rb +++ b/actionpack/test/dispatch/session/mem_cache_store_test.rb @@ -192,7 +192,7 @@ class MemCacheStoreTest < ActionDispatch::IntegrationTest @app = self.class.build_app(set) do |middleware| middleware.use ActionDispatch::Session::MemCacheStore, :key => '_session_id', :namespace => "mem_cache_store_test:#{SecureRandom.hex(10)}" - middleware.delete "ActionDispatch::ShowExceptions" + middleware.delete ActionDispatch::ShowExceptions end yield |