Skip to content

Instantly share code, notes, and snippets.

@thebrianemory
Last active January 17, 2018 20:13
Show Gist options
  • Save thebrianemory/a7318b84d4a63d0c3871e8e83f4f3277 to your computer and use it in GitHub Desktop.
Save thebrianemory/a7318b84d4a63d0c3871e8e83f4f3277 to your computer and use it in GitHub Desktop.
describe "new video" do
test "renders form", %{conn: conn} do
user = insert(:user)
conn = conn
|> assign(:user, user)
|> get(video_path(conn, :new))
assert html_response(conn, 200) =~ "Add video"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment