lib/tester/definition/methods/api_post.rb in api-tester-0.0.4 vs lib/tester/definition/methods/api_post.rb in api-tester-0.0.5

- old
+ new

@@ -1,16 +1,8 @@ -require 'tester/definition/request' -require 'tester/definition/response' -require "tester/version" require 'rest-client' -require 'json' require 'tester/definition/methods/api_method' -require 'tester/reporter/api_report' -require 'tester/reporter/status_code_report' class ApiPost < ApiMethod - attr_accessor :syntax_error_response - def post url, json_payload, headers RestClient.post(url, json_payload, headers) { |real_response, request, result| real_response } end