diff options
author | Steven Blowers <sblowers@findmypast.com> | 2016-09-12 13:59:28 +0100 |
---|---|---|
committer | Steven Blowers <sblowers@findmypast.com> | 2016-09-12 13:59:28 +0100 |
commit | 083fea659e070838540d0f2fc5f783b44db2ebeb (patch) | |
tree | 10e61e4da7bdf878e55e19c4a5ffa2263175547d /lib | |
parent | c0f7c0dd8c7871cafedb8d3a82c648fec42fb6b4 (diff) | |
download | zendex-083fea659e070838540d0f2fc5f783b44db2ebeb.tar.gz zendex-083fea659e070838540d0f2fc5f783b44db2ebeb.tar.xz |
Adding tests for creating a ticket.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/http_client/in_memory.ex | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/http_client/in_memory.ex b/lib/http_client/in_memory.ex index 3d1a3ea..8e6ce61 100644 --- a/lib/http_client/in_memory.ex +++ b/lib/http_client/in_memory.ex @@ -14,8 +14,7 @@ defmodule Zendex.HttpClient.InMemory do ["Jimbob Ticket 1", "Jimbob Ticket 2"] end - def post!("http://test.zendesk.com/api/v2/tickets.json", - "{\"ticket\": {}}", - [{"Authorization", _authentication}, {"Content-Type", "application/json"} ]) do + def post!("http://test.zendesk.com/api/v2/tickets.json", "{\"ticket\":{}}", [{"Authorization", _authentication}, {"Content-Type", "application/json"}]) do + "Ticket created successfully!" end end |