diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2015-08-13 14:04:02 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2015-08-13 14:04:02 -0700 |
commit | b778f6348bb5f00fc5fe8b6209c1a3f796126255 (patch) | |
tree | be5fbfe2fccae0d049f1411813dd39c213222680 /actionpack/test/dispatch | |
parent | e38a456faf6d4ab90c1ea7a3f9310ea47af35049 (diff) | |
download | rails-b778f6348bb5f00fc5fe8b6209c1a3f796126255.tar.gz rails-b778f6348bb5f00fc5fe8b6209c1a3f796126255.tar.bz2 rails-b778f6348bb5f00fc5fe8b6209c1a3f796126255.zip |
remove `as`
the caller already has access to `as`, so we can stop passing it around.
Diffstat (limited to 'actionpack/test/dispatch')
-rw-r--r-- | actionpack/test/dispatch/mapper_test.rb | 2 |
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..9a3a29b903 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)', 'foo', 'bar', nil, [:get], nil, options) _, _, requirements, _ = m.to_route assert_equal(/.+?/, requirements[:rest]) end |