diff options
author | Jeremy Kemper <jeremy@bitsweat.net> | 2007-01-28 18:24:46 +0000 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2007-01-28 18:24:46 +0000 |
commit | 09c708981ce058fe9b1cbead4fac9fbb58de6a97 (patch) | |
tree | 0b112a867a4720fcfdac51eb99e1e605f803ecb8 /actionpack/lib | |
parent | 16f6bd4070d57fc1eacb1a531385af205233a573 (diff) | |
download | rails-09c708981ce058fe9b1cbead4fac9fbb58de6a97.tar.gz rails-09c708981ce058fe9b1cbead4fac9fbb58de6a97.tar.bz2 rails-09c708981ce058fe9b1cbead4fac9fbb58de6a97.zip |
TestSession supports indifferent access so session['foo'] == session[:foo] in your tests. Closes #7372.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6086 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack/lib')
-rw-r--r-- | actionpack/lib/action_controller/test_process.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/actionpack/lib/action_controller/test_process.rb b/actionpack/lib/action_controller/test_process.rb index beccec6f94..1c319418b6 100644 --- a/actionpack/lib/action_controller/test_process.rb +++ b/actionpack/lib/action_controller/test_process.rb @@ -292,11 +292,11 @@ module ActionController #:nodoc: end def [](key) - data[key] + data[key.to_s] end def []=(key, value) - data[key] = value + data[key.to_s] = value end def update |