aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/dispatch/session/test_session_test.rb
diff options
context:
space:
mode:
authorMatthew Draper <matthew@trebex.net>2016-02-26 03:06:38 +1030
committerMatthew Draper <matthew@trebex.net>2016-02-26 03:06:38 +1030
commit6216a092ccfe6422f113db906a52fe8ffdafdbe6 (patch)
tree7f6fe35ff8f02185aeb9f2c8184665eb44bda81f /actionpack/test/dispatch/session/test_session_test.rb
parent1f8ce32edcce503490aa873dd49788c6fd79c135 (diff)
downloadrails-6216a092ccfe6422f113db906a52fe8ffdafdbe6.tar.gz
rails-6216a092ccfe6422f113db906a52fe8ffdafdbe6.tar.bz2
rails-6216a092ccfe6422f113db906a52fe8ffdafdbe6.zip
Revert "Update Session to utilize indiffernt access"
This reverts commit 45a75a3fcc96b22954caf69be2df4e302b134d7a. HWIAs are better than silently deeply-stringified hashes... but that's a reaction to a shortcoming of one particular session store: we should not break the basic behaviour of other, more featureful, session stores in the process. Fixes #23884
Diffstat (limited to 'actionpack/test/dispatch/session/test_session_test.rb')
-rw-r--r--actionpack/test/dispatch/session/test_session_test.rb7
1 files changed, 0 insertions, 7 deletions
diff --git a/actionpack/test/dispatch/session/test_session_test.rb b/actionpack/test/dispatch/session/test_session_test.rb
index 332c2ae3c8..3e61d123e3 100644
--- a/actionpack/test/dispatch/session/test_session_test.rb
+++ b/actionpack/test/dispatch/session/test_session_test.rb
@@ -60,11 +60,4 @@ class ActionController::TestSessionTest < ActiveSupport::TestCase
session = ActionController::TestSession.new(one: '1')
assert_equal(2, session.fetch('2') { |key| key.to_i })
end
-
- def test_fetch_returns_indifferent_access
- session = ActionController::TestSession.new(three: { two: '1' })
- three = session.fetch(:three)
- assert_equal('1', three[:two])
- assert_equal('1', three["two"])
- end
end