diff options
author | misfo <tedwardo2@gmail.com> | 2011-02-08 12:08:35 +0800 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2011-04-28 04:07:57 +0800 |
commit | 9f6cafd5fd43b551f30b28d276713791c5098b3c (patch) | |
tree | 2ff4d3805d4ff234201aebd645281c5e69db6142 /activeresource | |
parent | 1cd5a084c1bb92d8acf618368d2450a084b69345 (diff) | |
download | rails-9f6cafd5fd43b551f30b28d276713791c5098b3c.tar.gz rails-9f6cafd5fd43b551f30b28d276713791c5098b3c.tar.bz2 rails-9f6cafd5fd43b551f30b28d276713791c5098b3c.zip |
prevent errors when passing a frozen string as a param to ActionController::TestCase#process
since ActionDispatch::Http::Parameters#encode_params will force encoding on all params strings (when using an encoding aware Ruby), dup all strings passed into process. This prevents modification of params passed in and, more importantly, doesn't barf when a frozen string is passed
thanks and high fives to kinsteronline
Diffstat (limited to 'activeresource')
0 files changed, 0 insertions, 0 deletions