aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorSteven Blowers <shdblowers@gmail.com>2016-11-22 19:12:13 +0000
committerSteven Blowers <shdblowers@gmail.com>2016-11-22 19:12:13 +0000
commit04feaeb7d6c469b3000accb921ecea8d4d2d8d9d (patch)
tree7f14450256d2fb2e2716f774a0dc868e2b072e28 /lib
parent8dffc2d3d71d132f1d2b228fc24ae8155905b1a2 (diff)
downloadzendex-04feaeb7d6c469b3000accb921ecea8d4d2d8d9d.tar.gz
zendex-04feaeb7d6c469b3000accb921ecea8d4d2d8d9d.tar.xz
search test now using meck
Diffstat (limited to 'lib')
-rw-r--r--lib/zendex/search.ex3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/zendex/search.ex b/lib/zendex/search.ex
index ec9ea28..f920666 100644
--- a/lib/zendex/search.ex
+++ b/lib/zendex/search.ex
@@ -6,7 +6,6 @@ defmodule Zendex.Search do
alias Zendex.CommonHelpers
@url "/api/v2/search.json?query="
- @http_client Application.get_env(:zendex, :http_client)
@doc """
Search Zendesk.
@@ -18,7 +17,7 @@ defmodule Zendex.Search do
sort_string = create_sort_string(sort_by, sort_order)
"#{connection.base_url}#{@url}#{search_string}#{sort_string}"
- |> @http_client.get!(CommonHelpers.get_headers(connection.authentication))
+ |> HTTPoison.get!(CommonHelpers.get_headers(connection.authentication))
|> CommonHelpers.decode_response
end