Skip to content

Commit

Permalink
fix for test case
Browse files Browse the repository at this point in the history
  • Loading branch information
pkrawat1 committed Dec 29, 2017
1 parent 7775c21 commit b5c7a72
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions test/gringotts_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -87,14 +87,4 @@ defmodule GringottsTest do
fn -> authorize(GringottsTest.FakeGateway, 100, :card, []) end
)
end

test "validate_config when some required config is missing" do
Application.put_env(:gringotts, GringottsTest.FakeGateway, @bad_config)

assert_raise(
ArgumentError,
"expected [:other_secret] to be set, got: [adapter: GringottsTest.FakeGateway, some_auth_info: :merchant_secret_key]\n",
fn -> authorize(:payment_worker, GringottsTest.FakeGateway, 100, :card, []) end
)
end
end

0 comments on commit b5c7a72

Please sign in to comment.