spec/charge_spec.rb in affirm-ruby-1.1.3 vs spec/charge_spec.rb in affirm-ruby-1.2.0
- old
+ new
@@ -264,13 +264,15 @@
subject { described_class }
before do
expect(Affirm::Client).to receive(:request)
.with(:post, "charges/1/update",
- order_id: "XYZ-007",
- shipping_carrier: "FedEx",
- shipping_confirmation: "1ZX007")
+ {
+ order_id: "XYZ-007",
+ shipping_carrier: "FedEx",
+ shipping_confirmation: "1ZX007"
+ })
.and_return(failed_response)
end
it "returns failure object" do
expect(
@@ -308,12 +310,14 @@
end
before do
expect(Affirm::Client).to receive(:request)
.with(:post, "charges/1/update",
- order_id: "XYZ-007",
- shipping_carrier: "FedEx",
- shipping_confirmation: "1ZX007"
+ {
+ order_id: "XYZ-007",
+ shipping_carrier: "FedEx",
+ shipping_confirmation: "1ZX007"
+ }
)
.and_return(successful_response)
end
%w(