diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2015-08-11 16:15:55 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2015-08-11 16:16:09 -0700 |
commit | 97d7dc48d68e4c20c17e315c8f4d3f045ed97f5a (patch) | |
tree | e74fd8b8042e9a11a07195a2cc2f5fe9fcc718a6 /actionpack/test/dispatch | |
parent | c25d1707b9577db82ccbd47447247ba644d81432 (diff) | |
download | rails-97d7dc48d68e4c20c17e315c8f4d3f045ed97f5a.tar.gz rails-97d7dc48d68e4c20c17e315c8f4d3f045ed97f5a.tar.bz2 rails-97d7dc48d68e4c20c17e315c8f4d3f045ed97f5a.zip |
pull `to` up
this way we don't have to insert / delete it from the options hash so
many times.
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 0a7550eb4a..b0815c41c8 100644 --- a/actionpack/test/dispatch/mapper_test.rb +++ b/actionpack/test/dispatch/mapper_test.rb @@ -42,7 +42,7 @@ module ActionDispatch def test_mapping_requirements options = { :via => :get } - m = Mapper::Mapping.build({}, FakeSet.new, '/store/:name(*rest)', nil, 'foo', 'bar', options) + m = Mapper::Mapping.build({}, FakeSet.new, '/store/:name(*rest)', nil, 'foo', 'bar', nil, options) _, _, requirements, _ = m.to_route assert_equal(/.+?/, requirements[:rest]) end |