Created
March 22, 2019 16:25
-
-
Save Enforcer/cb884eef2cdb4a76fedc94e211901b41 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
defmodule IntegrationTest do | |
use ExUnit.Case, async: true | |
use Plug.Test | |
alias Wallets.Router | |
@opts Router.init([]) | |
test "getting balance creates new wallet with balance 0" do | |
conn = conn(:get, "/balance") | |
|> Router.call(@opts) | |
assert conn.resp_body == "0" | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment