diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2006-09-13 04:04:19 +0000 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2006-09-13 04:04:19 +0000 |
commit | 73a8d7393f842d4030561cef20fcf0ec9d52e1b9 (patch) | |
tree | a29412a6155f5d4e0be7f855a4061a096a1272ca /actionpack/test/controller | |
parent | 89840c40ceb54855fa81e641586abba04c3e35cb (diff) | |
download | rails-73a8d7393f842d4030561cef20fcf0ec9d52e1b9.tar.gz rails-73a8d7393f842d4030561cef20fcf0ec9d52e1b9.tar.bz2 rails-73a8d7393f842d4030561cef20fcf0ec9d52e1b9.zip |
Make sure that formatted routes for all verbs are created. Still needs to resolve two failing tests after this refactoring [DHH]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5096 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack/test/controller')
-rw-r--r-- | actionpack/test/controller/resources_test.rb | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/actionpack/test/controller/resources_test.rb b/actionpack/test/controller/resources_test.rb index 7e0299e834..e6ce8f21a2 100644 --- a/actionpack/test/controller/resources_test.rb +++ b/actionpack/test/controller/resources_test.rb @@ -17,12 +17,11 @@ class ResourcesTest < Test::Unit::TestCase :member => { :rss => :get, :atom => :get, :upload => :post, :fix => :post }, :new => { :preview => :get, :draft => :get }) - assert_resource_methods [:rss], resource, :collection, :get - assert_resource_methods [:create, :csv, :reorder], resource, :collection, :post - assert_resource_methods [:edit, :rss, :atom], resource, :member, :get - assert_resource_methods [:upload, :fix], resource, :member, :post - assert_resource_methods [:update], resource, :member, :put - assert_resource_methods [:new, :preview, :draft], resource, :new, :get + assert_resource_methods [:rss], resource, :collection, :get + assert_resource_methods [:csv, :reorder], resource, :collection, :post + assert_resource_methods [:edit, :rss, :atom], resource, :member, :get + assert_resource_methods [:upload, :fix], resource, :member, :post + assert_resource_methods [:preview, :draft], resource, :new, :get end def test_default_restful_routes |