Skip to content

Commit

Permalink
rename ElixirAuthGoogle.HTTPoison to ElixirAuthGoogle.HTTPoisonMock f…
Browse files Browse the repository at this point in the history
…or clarity in stack trace #35
  • Loading branch information
nelsonic committed Apr 2, 2020
1 parent 7c7623e commit 197a5da
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/elixir_auth_google.ex
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ defmodule ElixirAuthGoogle do
Minimalist Google OAuth Authentication for Elixir Apps.
Extensively tested, documented, maintained and in active use in production.
"""
@httpoison Mix.env() == :test && ElixirAuthGoogle.HTTPoison || HTTPoison
@httpoison Mix.env() == :test && ElixirAuthGoogle.HTTPoisonMock || HTTPoison
@google_auth_url "https://accounts.google.com/o/oauth2/v2/auth?response_type=code"
@google_token_url "https://oauth2.googleapis.com/token"
@google_user_profile "https://www.googleapis.com/oauth2/v3/userinfo"
Expand Down
4 changes: 2 additions & 2 deletions lib/testdouble.ex → lib/httpoison_mock.ex
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
defmodule ElixirAuthGoogle.HTTPoison do
defmodule ElixirAuthGoogle.HTTPoisonMock do
@moduledoc """
This is a test double for HTTPoison which returns a mock response.
This is a TestDouble for HTTPoison which returns a predictable response.
Please see: https://github.com/dwyl/elixir-auth-google/issues/35
"""

Expand Down

0 comments on commit 197a5da

Please sign in to comment.