Skip to content

Commit

Permalink
Added config as module attribute.
Browse files Browse the repository at this point in the history
  • Loading branch information
subpal authored and oyeb committed Apr 25, 2018
1 parent 6a65abd commit 1123360
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions test/integration/gateways/mercadopago_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ defmodule Gringotts.Integration.Gateways.MercadopagoTest do

@amount Money.new(45, :BRL)
@sub_amount Money.new(30, :BRL)
@config [
access_token: "TEST-2774702803649645-031303-1b9d3d63acb57cdad3458d386eee62bd-307592510",
public_key: "TEST-911f45a1-0560-4c16-915e-a8833830b29a"
]
@good_card %Gringotts.CreditCard{
first_name: "Hermoine",
last_name: "Granger",
Expand All @@ -23,10 +27,7 @@ defmodule Gringotts.Integration.Gateways.MercadopagoTest do
email: "[email protected]",
order_id: 123_126,
customer_id: "311211654-YrXF6J0QikpIWX",
config: [
access_token: "TEST-2774702803649645-031303-1b9d3d63acb57cdad3458d386eee62bd-307592510",
public_key: "TEST-911f45a1-0560-4c16-915e-a8833830b29a"
],
config: @config,
installments: 1
]

Expand Down

0 comments on commit 1123360

Please sign in to comment.