Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

use the factory method to construct the mapping

  • Loading branch information...
commit 4097ff5c5faa67b4b9a00488c42c7b16b0fdd2fc 1 parent e3df1dd
@tenderlove tenderlove authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  actionpack/test/dispatch/mapper_test.rb
View
2  actionpack/test/dispatch/mapper_test.rb
@@ -38,7 +38,7 @@ def test_initialize
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
Please sign in to comment.
Something went wrong with that request. Please try again.