Permalink
Browse files

use the factory method to construct the mapping

  • Loading branch information...
tenderlove committed Jun 3, 2014
1 parent e3df1dd commit 4097ff5c5faa67b4b9a00488c42c7b16b0fdd2fc
Showing with 1 addition and 1 deletion.
  1. +1 −1 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

0 comments on commit 4097ff5

Please sign in to comment.