Extract LiveTestHelpers.escape/1
This commit is contained in:
@@ -22,12 +22,6 @@ defmodule MusicLibraryWeb.CollectionLive.IndexTest do
|
||||
%{wishlist: records}
|
||||
end
|
||||
|
||||
defp escape(string) do
|
||||
string
|
||||
|> Phoenix.HTML.html_escape()
|
||||
|> Phoenix.HTML.safe_to_string()
|
||||
end
|
||||
|
||||
describe "Collection" do
|
||||
setup [:fill_collection, :fill_wishlist]
|
||||
|
||||
|
||||
@@ -4,12 +4,6 @@ defmodule MusicLibraryWeb.CollectionLive.ShowTest do
|
||||
import MusicLibrary.RecordsFixtures
|
||||
alias MusicLibrary.Records.Record
|
||||
|
||||
defp escape(string) do
|
||||
string
|
||||
|> Phoenix.HTML.html_escape()
|
||||
|> Phoenix.HTML.safe_to_string()
|
||||
end
|
||||
|
||||
describe "Edit record from show page" do
|
||||
test "can navigate to the record edit form", %{conn: conn} do
|
||||
record = record()
|
||||
|
||||
Reference in New Issue
Block a user