aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_controller
diff options
context:
space:
mode:
authorJeremy Kemper <jeremy@bitsweat.net>2007-01-28 18:24:46 +0000
committerJeremy Kemper <jeremy@bitsweat.net>2007-01-28 18:24:46 +0000
commit09c708981ce058fe9b1cbead4fac9fbb58de6a97 (patch)
tree0b112a867a4720fcfdac51eb99e1e605f803ecb8 /actionpack/lib/action_controller
parent16f6bd4070d57fc1eacb1a531385af205233a573 (diff)
downloadrails-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/action_controller')
-rw-r--r--actionpack/lib/action_controller/test_process.rb4
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