Created
October 22, 2016 16:46
-
-
Save renanvalentin/2e76ecf5156a762f5632959755da061a to your computer and use it in GitHub Desktop.
This file contains hidden or 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 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