aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2014-08-13 18:34:21 -0700
committerAaron Patterson <aaron.patterson@gmail.com>2014-08-13 18:34:21 -0700
commit3b908cba28552604f8d85a236f2d1c82f7589d80 (patch)
treefc2f4d0ea92afe7b33e54ecc03b734bce341b521 /actionpack/test
parentd4981c393bb086eb7d8a6696528891927398b073 (diff)
downloadrails-3b908cba28552604f8d85a236f2d1c82f7589d80.tar.gz
rails-3b908cba28552604f8d85a236f2d1c82f7589d80.tar.bz2
rails-3b908cba28552604f8d85a236f2d1c82f7589d80.zip
fewer operations on the options hash
since we pass `as` down, then we won't have to do an insert / delete dance with the options hash
Diffstat (limited to 'actionpack/test')
-rw-r--r--actionpack/test/dispatch/mapper_test.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/test/dispatch/mapper_test.rb b/actionpack/test/dispatch/mapper_test.rb
index 3e554a9cf6..889f9a4736 100644
--- a/actionpack/test/dispatch/mapper_test.rb
+++ b/actionpack/test/dispatch/mapper_test.rb
@@ -38,7 +38,7 @@ module ActionDispatch
def test_mapping_requirements
options = { :controller => 'foo', :action => 'bar', :via => :get }
- m = Mapper::Mapping.build({}, FakeSet.new, '/store/:name(*rest)', options)
+ m = Mapper::Mapping.build({}, FakeSet.new, '/store/:name(*rest)', nil, options)
_, _, requirements, _ = m.to_route
assert_equal(/.+?/, requirements[:rest])
end