diff options
author | Kir Shatrov <shatrov@me.com> | 2016-09-09 22:17:10 -0400 |
---|---|---|
committer | Kir Shatrov <shatrov@me.com> | 2016-09-10 11:13:12 -0400 |
commit | 040ca9cf5b7e193f0fb15166135643daa60f9237 (patch) | |
tree | ac4c24aeade3a3ece8b88bdc37c083f7f7cc1dab /actionpack/lib/action_controller/test_case.rb | |
parent | cf5f55cd30aef0f90300c7c8f333060fe258cd8a (diff) | |
download | rails-040ca9cf5b7e193f0fb15166135643daa60f9237.tar.gz rails-040ca9cf5b7e193f0fb15166135643daa60f9237.tar.bz2 rails-040ca9cf5b7e193f0fb15166135643daa60f9237.zip |
Do not mutate AC::TestRequest::DEFAULT_OPTIONS
Diffstat (limited to 'actionpack/lib/action_controller/test_case.rb')
-rw-r--r-- | actionpack/lib/action_controller/test_case.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_controller/test_case.rb b/actionpack/lib/action_controller/test_case.rb index 16ddd3b304..09f2a79d85 100644 --- a/actionpack/lib/action_controller/test_case.rb +++ b/actionpack/lib/action_controller/test_case.rb @@ -51,7 +51,7 @@ module ActionController super(env) self.session = session - self.session_options = TestSession::DEFAULT_OPTIONS + self.session_options = TestSession::DEFAULT_OPTIONS.dup @controller_class = controller_class @custom_param_parsers = { xml: lambda { |raw_post| Hash.from_xml(raw_post)["hash"] } |