D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
opt
/
alt
/
ruby18
/
lib64
/
ruby
/
gems
/
1.8
/
doc
/
rack-1.6.1
/
ri
/
Rack
/
MockRequest
/
Filename :
cdesc-MockRequest.yaml
back
Copy
--- !ruby/object:RI::ClassDescription attributes: [] class_methods: - !ruby/object:RI::MethodSummary name: env_for - !ruby/object:RI::MethodSummary name: new - !ruby/object:RI::MethodSummary name: parse_uri_rfc2396 comment: - !ruby/struct:SM::Flow::P body: Rack::MockRequest helps testing your Rack application without actually using HTTP. - !ruby/struct:SM::Flow::P body: After performing a request on a URL with get/post/put/patch/delete, it returns a MockResponse with useful helper methods for effective testing. - !ruby/struct:SM::Flow::P body: You can pass a hash with additional configuration to the get/post/put/patch/delete. - !ruby/object:SM::Flow::LIST contents: - !ruby/struct:SM::Flow::LI label: "<tt>:input</tt>:" body: A String or IO-like to be used as rack.input. - !ruby/struct:SM::Flow::LI label: "<tt>:fatal</tt>:" body: Raise a FatalWarning if the app writes to rack.errors. - !ruby/struct:SM::Flow::LI label: "<tt>:lint</tt>:" body: If true, wrap the application in a Rack::Lint. type: :NOTE constants: - !ruby/object:RI::Constant comment: name: DEFAULT_ENV value: "{ \"rack.version\" => Rack::VERSION, \"rack.input\" => StringIO.new, \"rack.errors\" => StringIO.new, \"rack.multithread\" => true, \"rack.multiprocess\" => true, \"rack.run_once\" => false, }" full_name: Rack::MockRequest includes: [] instance_methods: - !ruby/object:RI::MethodSummary name: delete - !ruby/object:RI::MethodSummary name: get - !ruby/object:RI::MethodSummary name: head - !ruby/object:RI::MethodSummary name: options - !ruby/object:RI::MethodSummary name: patch - !ruby/object:RI::MethodSummary name: post - !ruby/object:RI::MethodSummary name: put - !ruby/object:RI::MethodSummary name: request name: MockRequest superclass: Object