Skip to content

Instantly share code, notes, and snippets.

@renanvalentin
Created October 22, 2016 16:46
Show Gist options
  • Save renanvalentin/2e76ecf5156a762f5632959755da061a to your computer and use it in GitHub Desktop.
Save renanvalentin/2e76ecf5156a762f5632959755da061a to your computer and use it in GitHub Desktop.
defmodule LearningElixir.Router.Test do
use ExUnit.Case, async: true
use Plug.Test
alias LearningElixir.Router
@opts Router.init([])
test "returns hello text" do
response = conn(:get, "/")
|> Router.call([])
assert response.status == 200
assert response.resp_body == "Hello"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment