class IntegrationProcessTest::IntegrationController
Public Instance Methods
get()
click to toggle source
# File actionpack/test/controller/integration_test.rb, line 174 def get respond_to do |format| format.html { render plain: "OK", status: 200 } format.js { render plain: "JS OK", status: 200 } format.json { render json: "JSON OK", status: 200 } format.xml { render xml: "<root></root>", status: 200 } format.rss { render xml: "<root></root>", status: 200 } format.atom { render xml: "<root></root>", status: 200 } end end
get_with_params()
click to toggle source
# File actionpack/test/controller/integration_test.rb, line 185 def get_with_params render plain: "foo: #{params[:foo]}", status: 200 end
method()
click to toggle source
# File actionpack/test/controller/integration_test.rb, line 193 def method render plain: "method: #{request.method.downcase}" end
post()
click to toggle source
# File actionpack/test/controller/integration_test.rb, line 189 def post render plain: "Created", status: 201 end
redirect()
click to toggle source
# File actionpack/test/controller/integration_test.rb, line 212 def redirect redirect_to action_url("get") end
remove_header()
click to toggle source
# File actionpack/test/controller/integration_test.rb, line 216 def remove_header response.headers.delete params[:header] head :ok, "c" => "3" end