lib/toxiproxy/toxic.rb in toxiproxy-1.0.0 vs lib/toxiproxy/toxic.rb in toxiproxy-1.0.2

- old
+ new

@@ -16,11 +16,11 @@ def save request = Net::HTTP::Post.new("/proxies/#{proxy.name}/toxics") request.body = as_json - response = Toxiproxy.http.request(request) + response = Toxiproxy.http_request(request) Toxiproxy.assert_response(response) json = JSON.parse(response.body) @attributes = json['attributes'] @toxicity = json['toxicity'] @@ -28,10 +28,10 @@ self end def destroy request = Net::HTTP::Delete.new("/proxies/#{proxy.name}/toxics/#{name}") - response = Toxiproxy.http.request(request) + response = Toxiproxy.http_request(request) Toxiproxy.assert_response(response) self end def as_json