diff --git a/mix.exs b/mix.exs index b46dcf3..5832f15 100644 --- a/mix.exs +++ b/mix.exs @@ -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 [ diff --git a/test/knock_test.exs b/test/knock_test.exs index efb125f..2ad7c41 100644 --- a/test/knock_test.exs +++ b/test/knock_test.exs @@ -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