Add tests for Cards

master
Milton Mazzarri 2017-04-16 15:57:06 -05:00
parent 947d044385
commit 9db65d28bd
No known key found for this signature in database
GPG Key ID: 9F4193F2B5A558FE
2 changed files with 13 additions and 0 deletions

13
test/hunter/card_test.exs Normal file
View File

@ -0,0 +1,13 @@
defmodule Hunter.CardTest do
use ExUnit.Case, async: true
alias Hunter.Card
setup do
[conn: Hunter.Client.new([base_url: "https://example.com", bearer_token: "123456"])]
end
test "verify a card associated with a status", %{conn: conn} do
assert %Card{title: "milmazz/hunter"} = Card.card_by_status(conn, 118635)
end
end