Skip to content

Commit

Permalink
Fix formatting of generated *_live_test.exs (phoenixframework#3820)
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronrenner authored May 1, 2020
1 parent 7e1cb14 commit e4e03ea
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions priv/templates/phx.gen.live/live_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ defmodule <%= inspect context.web_module %>.<%= inspect Module.concat(schema.web
{:ok, index_live, _html} = live(conn, Routes.<%= schema.route_helper %>_index_path(conn, :index))

assert index_live |> element("a", "New <%= schema.human_singular %>") |> render_click() =~
"New <%= schema.human_singular %>"
"New <%= schema.human_singular %>"

assert_patch(index_live, Routes.<%= schema.route_helper %>_index_path(conn, :new))

Expand All @@ -55,7 +55,7 @@ defmodule <%= inspect context.web_module %>.<%= inspect Module.concat(schema.web
{:ok, index_live, _html} = live(conn, Routes.<%= schema.route_helper %>_index_path(conn, :index))

assert index_live |> element("#<%= schema.singular %>-#{<%= schema.singular %>.id} a", "Edit") |> render_click() =~
"Edit <%= schema.human_singular %>"
"Edit <%= schema.human_singular %>"

assert_patch(index_live, Routes.<%= schema.route_helper %>_index_path(conn, :edit, <%= schema.singular %>))

Expand Down Expand Up @@ -95,7 +95,7 @@ defmodule <%= inspect context.web_module %>.<%= inspect Module.concat(schema.web
{:ok, show_live, _html} = live(conn, Routes.<%= schema.route_helper %>_show_path(conn, :show, <%= schema.singular %>))

assert show_live |> element("a", "Edit") |> render_click() =~
"Edit <%= schema.human_singular %>"
"Edit <%= schema.human_singular %>"

assert_patch(show_live, Routes.<%= schema.route_helper %>_show_path(conn, :edit, <%= schema.singular %>))

Expand Down

0 comments on commit e4e03ea

Please sign in to comment.