Skip to content
Permalink
3229e0d67e
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
16 lines (13 sloc) 407 Bytes
defmodule CorrecthorseWeb.PasswordLiveTest do
use CorrecthorseWeb.ConnCase
import Phoenix.LiveViewTest
setup do
wordlist = ["danny", "sunshine", "little", "matey", "hello"]
StubWords.start(wordlist ++ wordlist)
:ok
end
test "passwords", %{conn: conn} do
{:ok, view, _html} = live(conn, "/")
assert render_click(view, "generate-password", %{}) =~ "little-sunshine"
end
end