Source: show | on GitHub
# File actionpack/test/dispatch/prefix_generation_test.rb, line 297 def self.call(env) env['action_dispatch.routes'] = routes routes.call(env) end
# File actionpack/test/dispatch/prefix_generation_test.rb, line 286 def self.routes @routes ||= begin routes = ActionDispatch::Routing::RouteSet.new routes.draw do match "/posts/:id", :to => "posts#show", :as => :post end routes end end