aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/dispatch/routing_test.rb
diff options
context:
space:
mode:
authorJoshua Peek <josh@joshpeek.com>2010-01-15 15:59:07 -0600
committerJoshua Peek <josh@joshpeek.com>2010-01-15 16:13:01 -0600
commit576b8dda52b0d0d099f88241ef6f4ec1e1248c3b (patch)
tree216cf3c5507ba852ddcbdb0fc58f886ce7c5c564 /actionpack/test/dispatch/routing_test.rb
parent21ce8eac9b9bd8e14e3396caf2e30751889e26cb (diff)
downloadrails-576b8dda52b0d0d099f88241ef6f4ec1e1248c3b.tar.gz
rails-576b8dda52b0d0d099f88241ef6f4ec1e1248c3b.tar.bz2
rails-576b8dda52b0d0d099f88241ef6f4ec1e1248c3b.zip
Cleanup internal resource macro to use method helper shorthand
Diffstat (limited to 'actionpack/test/dispatch/routing_test.rb')
-rw-r--r--actionpack/test/dispatch/routing_test.rb12
1 files changed, 12 insertions, 0 deletions
diff --git a/actionpack/test/dispatch/routing_test.rb b/actionpack/test/dispatch/routing_test.rb
index 2fcc5fef35..23581c8a17 100644
--- a/actionpack/test/dispatch/routing_test.rb
+++ b/actionpack/test/dispatch/routing_test.rb
@@ -211,8 +211,17 @@ class TestRoutingMapper < ActionDispatch::IntegrationTest
post '/session'
assert_equal 'sessions#create', @response.body
+ put '/session'
+ assert_equal 'sessions#update', @response.body
+
+ delete '/session'
+ assert_equal 'sessions#destroy', @response.body
+
get '/session/new'
assert_equal 'sessions#new', @response.body
+
+ get '/session/edit'
+ assert_equal 'sessions#edit', @response.body
end
end
@@ -284,6 +293,9 @@ class TestRoutingMapper < ActionDispatch::IntegrationTest
assert_equal 'projects#index', @response.body
assert_equal '/projects', projects_path
+ post '/projects'
+ assert_equal 'projects#create', @response.body
+
get '/projects.xml'
assert_equal 'projects#index', @response.body
assert_equal '/projects.xml', projects_path(:format => 'xml')