aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/dispatch/mapper_test.rb
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2015-08-13 13:58:16 -0700
committerAaron Patterson <aaron.patterson@gmail.com>2015-08-13 13:58:16 -0700
commite38a456faf6d4ab90c1ea7a3f9310ea47af35049 (patch)
treebb9d3b2e102d5c3776355313e2ebcabd000690ff /actionpack/test/dispatch/mapper_test.rb
parentaef421ed9da6a48582876e49e103a9af586a2c8b (diff)
downloadrails-e38a456faf6d4ab90c1ea7a3f9310ea47af35049.tar.gz
rails-e38a456faf6d4ab90c1ea7a3f9310ea47af35049.tar.bz2
rails-e38a456faf6d4ab90c1ea7a3f9310ea47af35049.zip
remove anchor from mapping
the same value that is extracted from the options hash earlier is returned, so we don't need to pass it in in the first place. The caller already has the data, so stop passing it around.
Diffstat (limited to 'actionpack/test/dispatch/mapper_test.rb')
-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 4a72bfa048..8734380008 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, nil, options)
+ m = Mapper::Mapping.build(scope, FakeSet.new, '/store/:name(*rest)', nil, 'foo', 'bar', nil, [:get], nil, options)
_, _, requirements, _ = m.to_route
assert_equal(/.+?/, requirements[:rest])
end