aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/dispatch
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2015-08-13 13:54:56 -0700
committerAaron Patterson <aaron.patterson@gmail.com>2015-08-13 13:55:03 -0700
commitaef421ed9da6a48582876e49e103a9af586a2c8b (patch)
tree4daeecedab7e4380b3647b7bfdfddc467fe3e97b /actionpack/test/dispatch
parent0168ce10a31ff2a00e2bce1c81ffbb25f0500281 (diff)
downloadrails-aef421ed9da6a48582876e49e103a9af586a2c8b.tar.gz
rails-aef421ed9da6a48582876e49e103a9af586a2c8b.tar.bz2
rails-aef421ed9da6a48582876e49e103a9af586a2c8b.zip
pull `anchor` extraction up
this way we don't have to mutate the options hash so far away from where the user passed it in
Diffstat (limited to 'actionpack/test/dispatch')
-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 8734380008..4a72bfa048 100644
--- a/actionpack/test/dispatch/mapper_test.rb
+++ b/actionpack/test/dispatch/mapper_test.rb
@@ -95,7 +95,7 @@ module ActionDispatch
def test_mapping_requirements
options = { }
scope = Mapper::Scope.new({})
- m = Mapper::Mapping.build(scope, FakeSet.new, '/store/:name(*rest)', nil, 'foo', 'bar', nil, [:get], nil, options)
+ m = Mapper::Mapping.build(scope, FakeSet.new, '/store/:name(*rest)', nil, 'foo', 'bar', nil, [:get], nil, nil, options)
_, _, requirements, _ = m.to_route
assert_equal(/.+?/, requirements[:rest])
end