aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib
diff options
context:
space:
mode:
authorCarlos Antonio da Silva <carlosantoniodasilva@gmail.com>2013-01-25 18:25:47 -0200
committerCarlos Antonio da Silva <carlosantoniodasilva@gmail.com>2013-01-25 19:15:32 -0200
commit9df25844ba77f5ebdfe6178c78c63de53c15c45c (patch)
tree23685fb4dad58dabbd19685eb9a6b744d059e121 /actionpack/lib
parent7d624e0e8cfa3adffd8f475e3588d83f3b367c24 (diff)
downloadrails-9df25844ba77f5ebdfe6178c78c63de53c15c45c.tar.gz
rails-9df25844ba77f5ebdfe6178c78c63de53c15c45c.tar.bz2
rails-9df25844ba77f5ebdfe6178c78c63de53c15c45c.zip
Add keys/values methods to TestSession
Bring back the same API we have with Request::Session.
Diffstat (limited to 'actionpack/lib')
-rw-r--r--actionpack/lib/action_controller/test_case.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/actionpack/lib/action_controller/test_case.rb b/actionpack/lib/action_controller/test_case.rb
index 3b241a569c..e9cf4372e4 100644
--- a/actionpack/lib/action_controller/test_case.rb
+++ b/actionpack/lib/action_controller/test_case.rb
@@ -251,6 +251,14 @@ module ActionController
true
end
+ def keys
+ @data.keys
+ end
+
+ def values
+ @data.values
+ end
+
def destroy
clear
end