diff options
author | Michael Koziarski <michael@koziarski.com> | 2008-01-30 01:25:44 +0000 |
---|---|---|
committer | Michael Koziarski <michael@koziarski.com> | 2008-01-30 01:25:44 +0000 |
commit | 900d6d7bd24519cbcab11b18ae42ae843e3b8aa9 (patch) | |
tree | 6bddcb98e3558b40e9bffab37ffd04247de302be /actionpack/test | |
parent | 9623264c0946e334c0811f2b585208476d12aa00 (diff) | |
download | rails-900d6d7bd24519cbcab11b18ae42ae843e3b8aa9.tar.gz rails-900d6d7bd24519cbcab11b18ae42ae843e3b8aa9.tar.bz2 rails-900d6d7bd24519cbcab11b18ae42ae843e3b8aa9.zip |
Make assert_routing aware of the HTTP method used. Closes #8039 [mpalmer]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8748 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack/test')
-rw-r--r-- | actionpack/test/controller/test_test.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/actionpack/test/controller/test_test.rb b/actionpack/test/controller/test_test.rb index b3a8e8750b..806fe32cd4 100644 --- a/actionpack/test/controller/test_test.rb +++ b/actionpack/test/controller/test_test.rb @@ -374,6 +374,13 @@ XML assert_routing 'content', :controller => 'content', :action => 'index' end + def test_assert_routing_with_method + with_routing do |set| + set.draw { |map| map.resources(:content) } + assert_routing({ :method => 'post', :path => 'content' }, { :controller => 'content', :action => 'create' }) + end + end + def test_assert_routing_in_module assert_routing 'admin/user', :controller => 'admin/user', :action => 'index' end |