aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/dispatch
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2015-08-11 13:54:25 -0700
committerAaron Patterson <aaron.patterson@gmail.com>2015-08-11 14:49:19 -0700
commit5935e4c882b89d539d7a1441263bc265d397cf8e (patch)
treed7581a6132fe14ed66d2a1fe656fc5b94053c052 /actionpack/test/dispatch
parent934bdf672466c789f4c9725f09e1ef2e7aae6694 (diff)
downloadrails-5935e4c882b89d539d7a1441263bc265d397cf8e.tar.gz
rails-5935e4c882b89d539d7a1441263bc265d397cf8e.tar.bz2
rails-5935e4c882b89d539d7a1441263bc265d397cf8e.zip
push option decomposition up a bit more
I think we can find the original place where `action` is added to the options hash now.
Diffstat (limited to 'actionpack/test/dispatch')
-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 18daa62425..0a7550eb4a 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 = { :action => 'bar', :via => :get }
- m = Mapper::Mapping.build({}, FakeSet.new, '/store/:name(*rest)', nil, 'foo', options)
+ options = { :via => :get }
+ m = Mapper::Mapping.build({}, FakeSet.new, '/store/:name(*rest)', nil, 'foo', 'bar', options)
_, _, requirements, _ = m.to_route
assert_equal(/.+?/, requirements[:rest])
end