Skip to content

Commit

Permalink
fix mix test
Browse files Browse the repository at this point in the history
  • Loading branch information
ripple0328 committed Jul 8, 2023
1 parent c296230 commit 657eb58
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 16 deletions.
4 changes: 2 additions & 2 deletions .tool-versions
@@ -1,2 +1,2 @@
elixir 1.15.2
erlang 16.0.2
elixir 1.15.2-otp-26
erlang 26.0.2
6 changes: 3 additions & 3 deletions lib/outdoor/release.ex
@@ -1,8 +1,8 @@
defmodule Outdoor.Release do
@moduledoc '''
@moduledoc """
Used for executing DB release tasks when run in production without Mix
installed.
'''
"""
@app :outdoor

def migrate do
Expand Down Expand Up @@ -34,4 +34,4 @@ defmodule Outdoor.Release do
defp load_app do
Application.load(@app)
end
end
end
4 changes: 1 addition & 3 deletions lib/outdoor_web/controllers/page_controller.ex
Expand Up @@ -4,8 +4,6 @@ defmodule OutdoorWeb.PageController do
def home(conn, _params) do
# The home page is often custom made,
# so skip the default app layout.
render(conn, :home, description: "Outdoor activity organize helper", layout: false)
render(conn, :home)
end
end


3 changes: 0 additions & 3 deletions lib/outdoor_web/controllers/page_html/home.html.heex
Expand Up @@ -4,8 +4,5 @@
<h1 class="text-brand mt-10 flex items-center text-sm font-semibold leading-6">
Outdoor activities organizer
</h1>
<p class="text-brand mt-10 flex items-center text-sm font-semibold leading-6">@description</p>
</div>
</div>


6 changes: 1 addition & 5 deletions test/outdoor_web/controllers/page_controller_test.exs
Expand Up @@ -3,10 +3,6 @@ defmodule OutdoorWeb.PageControllerTest do

test "GET /", %{conn: conn} do
conn = get(conn, ~p"/")
assert html_response(conn, 200) =~ "Outdoor activity organize helper"
assert html_response(conn, 200) =~ "correct description of the website's purpose"
assert html_response(conn, 200) =~ "new description of the website's purpose"
assert html_response(conn, 200) =~ "Outdoor activities organizer"
end
end


0 comments on commit 657eb58

Please sign in to comment.