spec/moip2/refund_api_spec.rb in moip2-0.1.4 vs spec/moip2/refund_api_spec.rb in moip2-1.0.0

- old
+ new

@@ -1,27 +1,25 @@ describe Moip2::RefundApi do let(:refund_api) { described_class.new(sandbox_client) } describe "#create order refund" do describe "refund full" do - let(:order_refunded) do VCR.use_cassette("create_full_order_refunded") do refund_api.create("ORD-7JOU41NX4M1S") end end it "refunds the entire amount" do expect(order_refunded.status).to eq "COMPLETED" end - end describe "partial refund" do let(:refunded_order) do VCR.use_cassette("create_partial_refunded_order") do - refund_api.create("ORD-6K8XPJD9O2KH", { amount: 100 }) + refund_api.create("ORD-6K8XPJD9O2KH", amount: 100) end end it "refunds a partial amount" do expect(refunded_order.status).to eq "COMPLETED" @@ -42,6 +40,6 @@ expect(refunded_order.status).to eq "COMPLETED" expect(refunded_order.type).to eq "PARTIAL" expect(refunded_order.id).to eq "REF-QW4T48M7NDFH" end end -end \ No newline at end of file +end