读书人

Rakc:Test:Methods#get

发布时间: 2012-09-25 09:55:59 作者: rapoo

Rakc::Test::Methods#get
(Rack::Test::Methods)#get


48 # Issue a GET request for the given URI with the given params and Rack
49 # environment. Stores the issues request object in #last_request and
50 # the app's response in #last_response. Yield #last_response to a block
51 # if given.
52 #
53 # Example:
54 # get "/"
55 def get(uri, params = {}, env = {}, &block)
56 env = env_for(uri, env.merge(:method => "GET", :params => params))
57 process_request(uri, env, &block)
58 end

读书人网 >移动开发

热点推荐