Permalink
Browse files

Added failing test for issue #1692

  • Loading branch information...
1 parent 1aae5e7 commit 062b290b5ea70291fc86dd8b9752144160123a2c @janv committed Jun 14, 2011
Showing with 9 additions and 0 deletions.
  1. +9 −0 actionpack/test/controller/test_test.rb
@@ -439,6 +439,15 @@ def test_assert_routing_with_method
assert_routing({ :method => 'post', :path => 'content' }, { :controller => 'content', :action => 'create' })
end
end
+
+ def test_routing_with_method
+ with_routing do |set|
+ set.draw { |map| map.route 'testmethod', :controller => 'test_test/test', :action => 'create', :method => :post }
+ assert_nothing_raised {
+ post :create
+ }
+ end
+ end
def test_assert_routing_in_module
assert_routing 'admin/user', :controller => 'admin/user', :action => 'index'

0 comments on commit 062b290

Please sign in to comment.