aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRafael França <rafaelmfranca@gmail.com>2016-02-02 01:49:55 -0200
committerRafael França <rafaelmfranca@gmail.com>2016-02-02 01:49:55 -0200
commitdd041934ddae85056912e6245bd415a981d65c8c (patch)
tree0b85693d20fe2ac4b3eaba22cbc19d5e87c896fe
parent49fc19dd917bc02bb6670a207a61c3c40cacd207 (diff)
parentc3639458af5e307191ff9d5674f8144caf6a2833 (diff)
downloadrails-dd041934ddae85056912e6245bd415a981d65c8c.tar.gz
rails-dd041934ddae85056912e6245bd415a981d65c8c.tar.bz2
rails-dd041934ddae85056912e6245bd415a981d65c8c.zip
Merge pull request #23396 from pschambacher/pschambacher/fix_assert_generates
Duplicate assert_generates options before modifying it
-rw-r--r--actionpack/lib/action_dispatch/testing/assertions/routing.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/actionpack/lib/action_dispatch/testing/assertions/routing.rb b/actionpack/lib/action_dispatch/testing/assertions/routing.rb
index 78ef860548..e7af27463c 100644
--- a/actionpack/lib/action_dispatch/testing/assertions/routing.rb
+++ b/actionpack/lib/action_dispatch/testing/assertions/routing.rb
@@ -86,6 +86,7 @@ module ActionDispatch
end
# Load routes.rb if it hasn't been loaded.
+ options = options.clone
generated_path, query_string_keys = @routes.generate_extras(options, defaults)
found_extras = options.reject { |k, _| ! query_string_keys.include? k }