`

Rakc::Test::Methods#get

    博客分类:
  • rack
 
阅读更多
(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
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics