Method: Tynn::Test::InstanceMethods#post
- Defined in:
- lib/tynn/test.rb
#post(path, params = {}, env = {}) ⇒ Object
Public: Issues a POST request for the given path with the given params and Rack environment.
Examples
app = Tynn::Test.new
app.post("/signup", username: "alice", password: "secret")
127 128 129 |
# File 'lib/tynn/test.rb', line 127 def post(path, params = {}, env = {}) request(path, env.merge(method: "POST".freeze, params: params)) end |