class IntegrationWithRoutingTest
Public Instance Methods
test_with_routing_resets_session()
click to toggle source
# File actionpack/test/controller/integration_test.rb, line 875 def test_with_routing_resets_session klass_namespace = self.class.name.underscore with_routing do |routes| routes.draw do namespace klass_namespace do resources :foo, path: "/with" end end get "/integration_with_routing_test/with" assert_response 200 assert_equal "ok", response.body end with_routing do |routes| routes.draw do namespace klass_namespace do resources :foo, path: "/routing" end end get "/integration_with_routing_test/routing" assert_response 200 assert_equal "ok", response.body end end