diff options
author | Joshua Peek <josh@joshpeek.com> | 2009-12-01 22:22:48 -0600 |
---|---|---|
committer | Joshua Peek <josh@joshpeek.com> | 2009-12-01 22:22:48 -0600 |
commit | 7fe19d415ab80727d685c163d7a0413ca6bfe585 (patch) | |
tree | 87322250e62b727bc8df7001b2c6c5459a8bc183 /actionpack/test/controller | |
parent | 30ae3538a3e281be3d6e8ca337a0790c71f8a9b2 (diff) | |
download | rails-7fe19d415ab80727d685c163d7a0413ca6bfe585.tar.gz rails-7fe19d415ab80727d685c163d7a0413ca6bfe585.tar.bz2 rails-7fe19d415ab80727d685c163d7a0413ca6bfe585.zip |
Make recognize try to constantize controller to see if it exists
Diffstat (limited to 'actionpack/test/controller')
-rw-r--r-- | actionpack/test/controller/routing_test.rb | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/actionpack/test/controller/routing_test.rb b/actionpack/test/controller/routing_test.rb index 97fbd95e73..84564f4e43 100644 --- a/actionpack/test/controller/routing_test.rb +++ b/actionpack/test/controller/routing_test.rb @@ -1851,11 +1851,9 @@ class RackMountIntegrationTests < ActiveSupport::TestCase assert_equal({:controller => 'posts', :action => 'show_date', :year => '2009'}, @routes.recognize_path('/blog/2009', :method => :get)) assert_equal({:controller => 'posts', :action => 'show_date', :year => '2009', :month => '01'}, @routes.recognize_path('/blog/2009/01', :method => :get)) assert_equal({:controller => 'posts', :action => 'show_date', :year => '2009', :month => '01', :day => '01'}, @routes.recognize_path('/blog/2009/01/01', :method => :get)) - assert_raise(ActionController::ActionControllerError) { @routes.recognize_path('/blog/123456789', :method => :get) } assert_equal({:controller => 'archive', :action => 'index', :year => '2010'}, @routes.recognize_path('/archive/2010')) assert_equal({:controller => 'archive', :action => 'index'}, @routes.recognize_path('/archive')) - assert_raise(ActionController::ActionControllerError) { @routes.recognize_path('/archive/january') } assert_equal({:controller => 'people', :action => 'index'}, @routes.recognize_path('/people', :method => :get)) assert_equal({:controller => 'people', :action => 'index', :format => 'xml'}, @routes.recognize_path('/people.xml', :method => :get)) |