From 7974c5d373fbabf7aa0b01360c0c22a5b8f86fb5 Mon Sep 17 00:00:00 2001 From: ravirocx Date: Fri, 27 Apr 2018 21:22:45 +0530 Subject: [PATCH] improved tests, docs --- lib/gringotts/gateways/we_pay.ex | 4 ++-- test/integration/gateways/we_pay_test.exs | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/gringotts/gateways/we_pay.ex b/lib/gringotts/gateways/we_pay.ex index 477085cf..e9c05ea4 100644 --- a/lib/gringotts/gateways/we_pay.ex +++ b/lib/gringotts/gateways/we_pay.ex @@ -32,7 +32,7 @@ defmodule Gringotts.Gateways.WePay do ## Supported currencies and countries WePay supports the countries listed [here][all-country-list] - + [all-country-list]: [https://support.wepay.com/hc/en-us/articles/203611643-Is-WePay-International-] ## Following the examples @@ -352,7 +352,7 @@ defmodule Gringotts.Gateways.WePay do Removes card or payment info that was previously `store/2`d Deletes previously stored payment-source data. - + ## Example ``` iex> {:ok, store_result} = Gringotts.unstore(Gringotts.Gateways.WePay, store_result.token, opts) diff --git a/test/integration/gateways/we_pay_test.exs b/test/integration/gateways/we_pay_test.exs index 81db171d..4a900bcb 100644 --- a/test/integration/gateways/we_pay_test.exs +++ b/test/integration/gateways/we_pay_test.exs @@ -2,6 +2,7 @@ defmodule Gringotts.Integration.Gateways.WePayTest do # Integration tests for the WePay use ExUnit.Case, async: false + use ExVCR.Mock, adapter: ExVCR.Adapter.Hackney alias Gringotts.Gateways.WePay alias Gringotts.{