Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ defmodule Knock.MixProject do
use Mix.Project

@source_url "https://github.com/knocklabs/knock-elixir"
@version "0.4.18"
@version "0.4.19"

def project do
[
Expand Down
5 changes: 3 additions & 2 deletions test/knock_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -38,14 +38,15 @@ defmodule KnockTest do
test "if set, will use the Tesla default adapter if one is not provided" do
Application.put_env(:tesla, :adapter, Tesla.Adapter.Hackney)

knock = TestClient.client()
knock = TestClient.client(api_key: "sk_test_12345")
assert knock.adapter == Tesla.Adapter.Hackney

Application.delete_env(:tesla, :adapter)
end

test "it can set the adapter to a custom one" do
knock = TestClient.client(adapter: Tesla.Adapter.Mint)
knock = TestClient.client(adapter: Tesla.Adapter.Mint, api_key: "sk_test_12345")

assert knock.adapter == Tesla.Adapter.Mint
end
end
Expand Down