File tree 2 files changed +5
-7
lines changed
2 files changed +5
-7
lines changed Original file line number Diff line number Diff line change 1
1
defmodule Gringotts.Gateways.MercadopagoTest do
2
2
# The file contains mocked tests for Mercadopago
3
-
3
+
4
4
# We recommend using [mock][1] for this, you can place the mock responses from
5
5
# the Gateway in `test/mocks/mercadopago_mock.exs` file, which has also been
6
6
# generated for you.
7
7
#
8
8
# [1]: https://github.com/jjh42/mock
9
-
9
+
10
10
# Load the mock response file before running the tests.
11
- Code . require_file "../mocks/mercadopago_mock.exs" , __DIR__
12
-
11
+ Code . require_file ( "../mocks/mercadopago_mock.exs" , __DIR__ )
12
+
13
13
use ExUnit.Case , async: false
14
14
alias Gringotts.Gateways.Mercadopago
15
15
import Mock
@@ -21,7 +21,7 @@ defmodule Gringotts.Gateways.MercadopagoTest do
21
21
describe "authorize" do
22
22
end
23
23
24
- describe "capture" do
24
+ describe "capture" do
25
25
end
26
26
27
27
describe "void" do
Original file line number Diff line number Diff line change 1
1
defmodule Gringotts.Gateways.MercadopagoMock do
2
-
3
2
# The module should include mock responses for test cases in mercadopago_test.exs.
4
3
# e.g.
5
4
# def successful_purchase do
6
5
# {:ok, %HTTPoison.Response{body: ~s[{data: "successful_purchase"}]}
7
6
# end
8
-
9
7
end
You can’t perform that action at this time.
0 commit comments