diff options
author | Joshua Peek <josh@joshpeek.com> | 2009-10-27 19:57:57 -0500 |
---|---|---|
committer | Joshua Peek <josh@joshpeek.com> | 2009-10-27 21:02:21 -0500 |
commit | 07da304ff84dca9a286005630cd3340f51384465 (patch) | |
tree | f0b9d3b219deeec48e66d8d6622ec2a2496f4909 | |
parent | 43e0bc1c9f39ebf5b253b498b38101a4aba04a45 (diff) | |
download | rails-07da304ff84dca9a286005630cd3340f51384465.tar.gz rails-07da304ff84dca9a286005630cd3340f51384465.tar.bz2 rails-07da304ff84dca9a286005630cd3340f51384465.zip |
Some more generation tests
-rw-r--r-- | actionpack/test/dispatch/routing_test.rb | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/actionpack/test/dispatch/routing_test.rb b/actionpack/test/dispatch/routing_test.rb index 5558cf0154..74e6c8e72d 100644 --- a/actionpack/test/dispatch/routing_test.rb +++ b/actionpack/test/dispatch/routing_test.rb @@ -116,6 +116,7 @@ class TestRoutingMapper < ActionDispatch::IntegrationTest assert_equal 'sessions#destroy', @response.body assert_equal '/logout', logout_path + assert_equal '/logout', url_for(:controller => 'sessions', :action => 'destroy', :only_path => true) end end @@ -123,11 +124,13 @@ class TestRoutingMapper < ActionDispatch::IntegrationTest with_test_routes do get '/login' assert_equal 'sessions#new', @response.body + assert_equal '/login', login_path post '/login' assert_equal 'sessions#create', @response.body - assert_equal '/login', login_path + assert_equal '/login', url_for(:controller => 'sessions', :action => 'create', :only_path => true) + assert_equal '/login', url_for(:controller => 'sessions', :action => 'new', :only_path => true) end end |