diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2014-06-03 11:42:45 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2014-06-03 11:42:45 -0700 |
commit | 4097ff5c5faa67b4b9a00488c42c7b16b0fdd2fc (patch) | |
tree | 739a017467262d9d9904ba3c3527c6aac5b02392 /actionpack/test/dispatch | |
parent | e3df1dd047170a440582fe95b5e0fafc12acbb48 (diff) | |
download | rails-4097ff5c5faa67b4b9a00488c42c7b16b0fdd2fc.tar.gz rails-4097ff5c5faa67b4b9a00488c42c7b16b0fdd2fc.tar.bz2 rails-4097ff5c5faa67b4b9a00488c42c7b16b0fdd2fc.zip |
use the factory method to construct the mapping
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 bf82e09f39..d8d3209dac 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.new({}, '/store/:name(*rest)', options) + m = Mapper::Mapping.build({}, '/store/:name(*rest)', options) _, _, requirements, _ = m.to_route assert_equal(/.+?/, requirements[:rest]) end |