Methods
- D
- T
-
- test_missing_action_on_hash,
- test_missing_controller,
- test_missing_controller_with_to,
- test_resources_with_valid_namespaced_controller_option,
- test_valid_controller_options_inside_namespace,
- test_warn_with_ruby_constant_syntax_controller_option,
- test_warn_with_ruby_constant_syntax_namespaced_controller_option,
- test_warn_with_ruby_constant_syntax_no_colons
Instance Public methods
draw(&block)
Link
test_missing_action_on_hash()
Link
test_missing_controller()
Link
test_missing_controller_with_to()
Link
test_resources_with_valid_namespaced_controller_option()
Link
test_valid_controller_options_inside_namespace()
Link
# File actionpack/test/dispatch/routing_test.rb, line 3847 def test_valid_controller_options_inside_namespace draw do namespace :admin do resources :storage_files, :controller => "storage_files" end end get '/admin/storage_files' assert_equal "admin/storage_files#index", @response.body end
test_warn_with_ruby_constant_syntax_controller_option()
Link
# File actionpack/test/dispatch/routing_test.rb, line 3867 def test_warn_with_ruby_constant_syntax_controller_option e = assert_raise(ArgumentError) do draw do namespace :admin do resources :storage_files, :controller => "StorageFiles" end end end assert_match "'admin/StorageFiles' is not a supported controller name", e.message end
test_warn_with_ruby_constant_syntax_namespaced_controller_option()
Link
# File actionpack/test/dispatch/routing_test.rb, line 3879 def test_warn_with_ruby_constant_syntax_namespaced_controller_option e = assert_raise(ArgumentError) do draw do resources :storage_files, :controller => 'Admin::StorageFiles' end end assert_match "'Admin::StorageFiles' is not a supported controller name", e.message end
test_warn_with_ruby_constant_syntax_no_colons()
Link
# File actionpack/test/dispatch/routing_test.rb, line 3889 def test_warn_with_ruby_constant_syntax_no_colons e = assert_raise(ArgumentError) do draw do resources :storage_files, :controller => 'Admin' end end assert_match "'Admin' is not a supported controller name", e.message end