spec/paymill/client_spec.rb in paymill-0.0.1 vs spec/paymill/client_spec.rb in paymill-0.0.2

- old
+ new

@@ -16,11 +16,18 @@ end end describe ".find" do it "makes a new GET request using the correct API endpoint" do - Paymill.should_receive(:request).with(:get, "clients", {}, "/123").and_return("data" => {}) + Paymill.should_receive(:request).with(:get, "clients/123", {}).and_return("data" => {}) Paymill::Client.find("123") + end + end + + describe ".delete" do + it "makes a new DELETE request using the correct API endpoint" do + Paymill.should_receive(:request).with(:delete, "clients/123", {}).and_return(true) + Paymill::Client.delete("123") end end describe ".create" do it "makes a new POST request using the correct API endpoint" do \ No newline at end of file