Skip to content

Commit

Permalink
Merge pull request #370 from ShahneRodgers/test-fixes
Browse files Browse the repository at this point in the history
Fixed the tests added in commit [fdd7402]
  • Loading branch information
edgurgel authored Dec 15, 2018
2 parents f31f580 + 0f48d46 commit ac8ea0a
Showing 1 changed file with 37 additions and 6 deletions.
43 changes: 37 additions & 6 deletions test/httpoison_base_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,13 @@ defmodule HTTPoisonBaseTest do
status_code: 200,
headers: "headers",
body: "response",
request_url: "http://www.somedomain.com"
request_url: "http://www.somedomain.com",
request: %HTTPoison.Request{
url: "http://www.somedomain.com",
body: "body",
method: :post,
options: [proxy: "proxy"]
}
}
end

Expand All @@ -402,7 +408,12 @@ defmodule HTTPoisonBaseTest do
status_code: 200,
headers: "headers",
body: "response",
request_url: "http://www.somedomain.com"
request_url: "http://www.somedomain.com",
request: %HTTPoison.Request{
url: "http://www.somedomain.com",
body: "body",
method: :post
}
}
end

Expand All @@ -417,7 +428,12 @@ defmodule HTTPoisonBaseTest do
status_code: 200,
headers: "headers",
body: "response",
request_url: "http://www.somedomain.com"
request_url: "http://www.somedomain.com",
request: %HTTPoison.Request{
url: "http://www.somedomain.com",
body: "body",
method: :post
}
}
end

Expand All @@ -432,7 +448,12 @@ defmodule HTTPoisonBaseTest do
status_code: 200,
headers: "headers",
body: "response",
request_url: "http://www.matching.com"
request_url: "http://www.matching.com",
request: %HTTPoison.Request{
url: "http://www.matching.com",
body: "body",
method: :post
}
}
end

Expand All @@ -447,7 +468,12 @@ defmodule HTTPoisonBaseTest do
status_code: 200,
headers: "headers",
body: "response",
request_url: "http://www.matching.com"
request_url: "http://www.matching.com",
request: %HTTPoison.Request{
url: "http://www.matching.com",
body: "body",
method: :post
}
}
end

Expand All @@ -462,7 +488,12 @@ defmodule HTTPoisonBaseTest do
status_code: 200,
headers: "headers",
body: "response",
request_url: "http://www.matching.com"
request_url: "http://www.matching.com",
request: %HTTPoison.Request{
url: "http://www.matching.com",
body: "body",
method: :post
}
}
end

Expand Down

0 comments on commit ac8ea0a

Please sign in to comment.