use credo style
This commit is contained in:
@ -57,7 +57,7 @@ defmodule MemexWeb.ContextLiveTest do
|
||||
|> form("#context-form", context: @invalid_attrs)
|
||||
|> render_change() =~ "can't be blank"
|
||||
|
||||
{:ok, _, html} =
|
||||
{:ok, _live, html} =
|
||||
index_live
|
||||
|> form("#context-form", context: @create_attrs)
|
||||
|> render_submit()
|
||||
@ -79,7 +79,7 @@ defmodule MemexWeb.ContextLiveTest do
|
||||
|> form("#context-form", context: @invalid_attrs)
|
||||
|> render_change() =~ "can't be blank"
|
||||
|
||||
{:ok, _, html} =
|
||||
{:ok, _live, html} =
|
||||
index_live
|
||||
|> form("#context-form", context: @update_attrs)
|
||||
|> render_submit()
|
||||
@ -122,7 +122,7 @@ defmodule MemexWeb.ContextLiveTest do
|
||||
assert html =~ "can't be blank"
|
||||
assert html =~ "tags must be comma-delimited"
|
||||
|
||||
{:ok, _, html} =
|
||||
{:ok, _live, html} =
|
||||
show_live
|
||||
|> form("#context-form", context: Map.put(@update_attrs, "slug", context.slug))
|
||||
|> render_submit()
|
||||
|
@ -40,7 +40,7 @@ defmodule MemexWeb.InviteLiveTest do
|
||||
# |> form("#invite-form", invite: @invalid_attrs)
|
||||
# |> render_change() =~ dgettext("errors", "can't be blank")
|
||||
|
||||
{:ok, _, html} =
|
||||
{:ok, _live, html} =
|
||||
index_live
|
||||
|> form("#invite-form", invite: @create_attrs)
|
||||
|> render_submit()
|
||||
@ -64,7 +64,7 @@ defmodule MemexWeb.InviteLiveTest do
|
||||
# |> form("#invite-form", invite: @invalid_attrs)
|
||||
# |> render_change() =~ dgettext("errors", "can't be blank")
|
||||
|
||||
{:ok, _, html} =
|
||||
{:ok, _live, html} =
|
||||
index_live
|
||||
|> form("#invite-form", invite: @update_attrs)
|
||||
|> render_submit()
|
||||
|
@ -62,7 +62,7 @@ defmodule MemexWeb.NoteLiveTest do
|
||||
assert html =~ "can't be blank"
|
||||
assert html =~ "tags must be comma-delimited"
|
||||
|
||||
{:ok, _, html} =
|
||||
{:ok, _live, html} =
|
||||
index_live
|
||||
|> form("#note-form", note: @create_attrs)
|
||||
|> render_submit()
|
||||
@ -84,7 +84,7 @@ defmodule MemexWeb.NoteLiveTest do
|
||||
|> form("#note-form", note: @invalid_attrs)
|
||||
|> render_change() =~ "can't be blank"
|
||||
|
||||
{:ok, _, html} =
|
||||
{:ok, _live, html} =
|
||||
index_live
|
||||
|> form("#note-form", note: @update_attrs)
|
||||
|> render_submit()
|
||||
@ -123,7 +123,7 @@ defmodule MemexWeb.NoteLiveTest do
|
||||
|> form("#note-form", note: @invalid_attrs)
|
||||
|> render_change() =~ "can't be blank"
|
||||
|
||||
{:ok, _, html} =
|
||||
{:ok, _live, html} =
|
||||
show_live
|
||||
|> form("#note-form", note: Map.put(@update_attrs, "slug", note.slug))
|
||||
|> render_submit()
|
||||
|
@ -68,7 +68,7 @@ defmodule MemexWeb.PipelineLiveTest do
|
||||
|> form("#pipeline-form", pipeline: @invalid_attrs)
|
||||
|> render_change() =~ "can't be blank"
|
||||
|
||||
{:ok, _, html} =
|
||||
{:ok, _live, html} =
|
||||
index_live
|
||||
|> form("#pipeline-form", pipeline: @create_attrs)
|
||||
|> render_submit()
|
||||
@ -90,7 +90,7 @@ defmodule MemexWeb.PipelineLiveTest do
|
||||
|> form("#pipeline-form", pipeline: @invalid_attrs)
|
||||
|> render_change() =~ "can't be blank"
|
||||
|
||||
{:ok, _, html} =
|
||||
{:ok, _live, html} =
|
||||
index_live
|
||||
|> form("#pipeline-form", pipeline: @update_attrs)
|
||||
|> render_submit()
|
||||
@ -136,7 +136,7 @@ defmodule MemexWeb.PipelineLiveTest do
|
||||
assert html =~ "can't be blank"
|
||||
assert html =~ "tags must be comma-delimited"
|
||||
|
||||
{:ok, _, html} =
|
||||
{:ok, _live, html} =
|
||||
show_live
|
||||
|> form("#pipeline-form", pipeline: Map.put(@update_attrs, "slug", pipeline.slug))
|
||||
|> render_submit()
|
||||
|
Reference in New Issue
Block a user