Skip to content

Instantly share code, notes, and snippets.

@Enforcer
Created March 22, 2019 16:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Enforcer/cb884eef2cdb4a76fedc94e211901b41 to your computer and use it in GitHub Desktop.
Save Enforcer/cb884eef2cdb4a76fedc94e211901b41 to your computer and use it in GitHub Desktop.
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