diff options
author | Łukasz Strzałkowski <lukasz.strzalkowski@gmail.com> | 2010-09-04 17:04:57 +0200 |
---|---|---|
committer | Piotr Sarnacki <drogus@gmail.com> | 2010-09-05 13:44:39 +0200 |
commit | 5b550523b70f0e1586fdd33dbe09191b4443c6d3 (patch) | |
tree | c6cf31910320e503e91e983723a34c7ed65bfbd5 /actionpack/test/controller | |
parent | 8f2c0bf1a072a5f2e531bef65f13b8981e1ec181 (diff) | |
download | rails-5b550523b70f0e1586fdd33dbe09191b4443c6d3.tar.gz rails-5b550523b70f0e1586fdd33dbe09191b4443c6d3.tar.bz2 rails-5b550523b70f0e1586fdd33dbe09191b4443c6d3.zip |
Fixed 2 broken tests for router.
They were broken after rebase/merge
Diffstat (limited to 'actionpack/test/controller')
-rw-r--r-- | actionpack/test/controller/routing_test.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/actionpack/test/controller/routing_test.rb b/actionpack/test/controller/routing_test.rb index c396508b49..246fcd8198 100644 --- a/actionpack/test/controller/routing_test.rb +++ b/actionpack/test/controller/routing_test.rb @@ -913,7 +913,7 @@ class RouteSetTest < ActiveSupport::TestCase params = set.recognize_path("/people/5", :method => :put) assert_equal("update", params[:action]) - assert_raise(ActionController::RoutingError) { + assert_raise(ActionController::UnknownHttpMethod) { set.recognize_path("/people", :method => :bacon) } @@ -978,7 +978,7 @@ class RouteSetTest < ActiveSupport::TestCase set.draw do get "people/:id" => "people#show", :as => "person" put "people/:id" => "people#update" - get "people/:id(.:_format)" => "people#show" + get "people/:id(.:format)" => "people#show" end params = set.recognize_path("/people/5", :method => :get) @@ -991,7 +991,7 @@ class RouteSetTest < ActiveSupport::TestCase params = set.recognize_path("/people/5.png", :method => :get) assert_equal("show", params[:action]) assert_equal("5", params[:id]) - assert_equal("png", params[:_format]) + assert_equal("png", params[:format]) end def test_generate_with_default_action |