Skip to content

Commit

Permalink
return basic profile data in HTTPoisonMock.post!/4 for testing welcom…
Browse files Browse the repository at this point in the history
…e template #44
  • Loading branch information
nelsonic committed Apr 3, 2020
1 parent 5ca138e commit 8bd5c87
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion lib/httpoison_mock.ex
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,11 @@ defmodule ElixirAuthGithub.HTTPoisonMock do
end

def post!(_url, _body, _headers, _options) do
%{body: "access_token=12345"}
%{
body: "access_token=12345",
name: "Alex McAwesome",
email: "alex@gmail.com",
avatar_url: "https://avatars3.githubusercontent.com/u/10835816"
}
end
end

0 comments on commit 8bd5c87

Please sign in to comment.