Cleanup
This commit is contained in:
parent
5898d34d45
commit
32dcb0d25f
|
@ -1,9 +0,0 @@
|
||||||
defmodule Lytedev do
|
|
||||||
@moduledoc """
|
|
||||||
Lytedev keeps the contexts that define your domain
|
|
||||||
and business logic.
|
|
||||||
|
|
||||||
Contexts are also responsible for managing your data, regardless
|
|
||||||
if it comes from the database, an external API or others.
|
|
||||||
"""
|
|
||||||
end
|
|
|
@ -1,19 +0,0 @@
|
||||||
defmodule Test.Lytedev.HttpServer do
|
|
||||||
use ExUnit.Case
|
|
||||||
|
|
||||||
setup do
|
|
||||||
Finch.start_link(name: __MODULE__.Finch)
|
|
||||||
|
|
||||||
:ok
|
|
||||||
end
|
|
||||||
|
|
||||||
test "index request greets the world" do
|
|
||||||
{:ok, response} =
|
|
||||||
Finch.build(:get, "http://localhost:3000")
|
|
||||||
|> Finch.request(__MODULE__.Finch)
|
|
||||||
|
|
||||||
assert response.body =~ "Hello"
|
|
||||||
assert response.body =~ "World"
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
|
@ -10,7 +10,6 @@ defmodule Test.Lytedev.HttpServer do
|
||||||
test "index request greets the world" do
|
test "index request greets the world" do
|
||||||
Finch.build(:get, "http://localhost:3000")
|
Finch.build(:get, "http://localhost:3000")
|
||||||
|> Finch.request(__MODULE__.Finch)
|
|> Finch.request(__MODULE__.Finch)
|
||||||
|> IO.inspect()
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue