aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/dispatch/mapper_test.rb
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2015-08-12 13:43:32 -0700
committerAaron Patterson <aaron.patterson@gmail.com>2015-08-12 14:30:53 -0700
commitb59ff24207c39ec69ab2d792c5ebb4e77c871f51 (patch)
treee06663fb09daf97649e71b43bc52e4677fc5ee02 /actionpack/test/dispatch/mapper_test.rb
parentf88c68a819b0abb93a0bf12d24caaa12e31c504b (diff)
downloadrails-b59ff24207c39ec69ab2d792c5ebb4e77c871f51.tar.gz
rails-b59ff24207c39ec69ab2d792c5ebb4e77c871f51.tar.bz2
rails-b59ff24207c39ec69ab2d792c5ebb4e77c871f51.zip
pull `via` extraction up
We're going to try pulling this up further, and check `via` validity sooner. This way we don't have to do a bunch of processing on `options` hashes only to find out that the route is incorrect
Diffstat (limited to 'actionpack/test/dispatch/mapper_test.rb')
-rw-r--r--actionpack/test/dispatch/mapper_test.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/actionpack/test/dispatch/mapper_test.rb b/actionpack/test/dispatch/mapper_test.rb
index b0815c41c8..5376ed70dd 100644
--- a/actionpack/test/dispatch/mapper_test.rb
+++ b/actionpack/test/dispatch/mapper_test.rb
@@ -41,8 +41,8 @@ module ActionDispatch
end
def test_mapping_requirements
- options = { :via => :get }
- m = Mapper::Mapping.build({}, FakeSet.new, '/store/:name(*rest)', nil, 'foo', 'bar', nil, options)
+ options = { }
+ m = Mapper::Mapping.build({}, FakeSet.new, '/store/:name(*rest)', nil, 'foo', 'bar', nil, [:get], options)
_, _, requirements, _ = m.to_route
assert_equal(/.+?/, requirements[:rest])
end