tests/email_api_tests.rb
# Simulates both GET and POST browser requests
Simulates both GET and POST browser requests
Simulates both GET and POST browser requests
def ambiguous_request(params)
    response_get  = browser_response 'get', '/send', params
    response_post = browser_response 'post', '/send', params
    assert_equal response_get, response_post
    response = response_get
    validate_response response
    response
  end
def ambiguous_request ( params ) response_get = browser_response 'get' , '/send' , params response_post = browser_response 'post' , '/send' , params assert_equal response_get , response_post response = response_get validate_response response response end
Simulates both GET and POST browser requests
Simulates both GET and POST browser requests
# For simplicity, test onward with a single 'response' var
params
<not_specific>