class TestHttpMethods
Constants
- RFC2518
- RFC2616
- RFC3253
- RFC3648
- RFC3744
- RFC4791
- RFC5323
- RFC5789
Attributes
app[R]
Public Instance Methods
setup()
click to toggle source
# File actionpack/test/dispatch/routing_test.rb, line 4016 def setup s = self routes = ActionDispatch::Routing::RouteSet.new @app = RoutedRackApp.new routes routes.draw do (RFC2616 + RFC2518 + RFC3253 + RFC3648 + RFC3744 + RFC5323 + RFC4791 + RFC5789).each do |method| match "/" => s.simple_app(method), :via => method.underscore.to_sym end end end
simple_app(response)
click to toggle source
# File actionpack/test/dispatch/routing_test.rb, line 4010 def simple_app(response) lambda { |env| [ 200, { "Content-Type" => "text/plain" }, [response] ] } end