Class: RoutesTest
- Inherits:
-
ActionController::TestCase
- Object
- ActionController::TestCase
- RoutesTest
- Defined in:
- vendor/plugins/engines/test/functional/routes_test.rb
Instance Method Summary
- - (Object) test_should_properly_generate_named_routes
- - (Object) test_WITH_a_route_defined_in_a_plugin_IT_should_route_it
- - (Object) test_WITH_a_route_for_a_namespaced_controller_defined_in_a_plugin_IT_should_route_it
Instance Method Details
- (Object) test_should_properly_generate_named_routes
25 26 27 28 |
# File 'vendor/plugins/engines/test/functional/routes_test.rb', line 25 def test_should_properly_generate_named_routes get :test_named_routes_from_plugin assert_response_body '/somespace/routes' end |
- (Object) test_WITH_a_route_defined_in_a_plugin_IT_should_route_it
11 12 13 14 15 16 |
# File 'vendor/plugins/engines/test/functional/routes_test.rb', line 11 def test_WITH_a_route_defined_in_a_plugin_IT_should_route_it path = '/routes/an_action' opts = {:controller => 'test_routing', :action => 'an_action'} assert_routing path, opts assert_recognizes opts, path # not sure what exactly the difference is, but it won't hurt either end |
- (Object) test_WITH_a_route_for_a_namespaced_controller_defined_in_a_plugin_IT_should_route_it
18 19 20 21 22 23 |
# File 'vendor/plugins/engines/test/functional/routes_test.rb', line 18 def test_WITH_a_route_for_a_namespaced_controller_defined_in_a_plugin_IT_should_route_it path = 'somespace/routes/an_action' opts = {:controller => 'namespace/test_routing', :action => 'an_action'} assert_routing path, opts assert_recognizes opts, path end |