1 Commits

Author SHA1 Message Date
1c33cd09c1 improve tagging logic
Some checks are pending
continuous-integration/drone/push Build is running
2022-12-19 22:29:26 -05:00
4 changed files with 12 additions and 34 deletions

10
de.tbx
View File

@ -1,10 +0,0 @@
<?xml version="1.0"?>
<!DOCTYPE martif PUBLIC "ISO 12200:1999A//DTD MARTIF core (DXFcdV04)//EN" "TBXcdv04.dtd">
<martif type="TBX">
<martifHeader>
<fileDesc>
<sourceDesc><p>Translate Toolkit</p></sourceDesc>
</fileDesc>
</martifHeader>
<text><body></body></text>
</martif>

View File

@ -18,7 +18,7 @@ defmodule MemexWeb.ContextLiveTest do
}
@invalid_attrs %{
"content" => nil,
"tags_string" => " ",
"tags_string" => "",
"slug" => nil,
"visibility" => nil
}
@ -114,13 +114,9 @@ defmodule MemexWeb.ContextLiveTest do
assert_patch(show_live, Routes.context_show_path(conn, :edit, context.slug))
html =
show_live
assert show_live
|> form("#context-form", context: @invalid_attrs)
|> render_change()
assert html =~ "can&#39;t be blank"
assert html =~ "tags must be comma-delimited"
|> render_change() =~ "can&#39;t be blank"
{:ok, _, html} =
show_live

View File

@ -19,7 +19,7 @@ defmodule MemexWeb.NoteLiveTest do
}
@invalid_attrs %{
"content" => nil,
"tags_string" => " ",
"tags_string" => "",
"slug" => nil,
"visibility" => nil
}
@ -54,13 +54,9 @@ defmodule MemexWeb.NoteLiveTest do
assert_patch(index_live, Routes.note_index_path(conn, :new))
html =
index_live
assert index_live
|> form("#note-form", note: @invalid_attrs)
|> render_change()
assert html =~ "can&#39;t be blank"
assert html =~ "tags must be comma-delimited"
|> render_change() =~ "can&#39;t be blank"
{:ok, _, html} =
index_live

View File

@ -17,7 +17,7 @@ defmodule MemexWeb.PipelineLiveTest do
}
@invalid_attrs %{
"description" => nil,
"tags_string" => " ",
"tags_string" => "",
"slug" => nil,
"visibility" => nil
}
@ -128,13 +128,9 @@ defmodule MemexWeb.PipelineLiveTest do
assert_patch(show_live, Routes.pipeline_show_path(conn, :edit, pipeline.slug))
html =
show_live
assert show_live
|> form("#pipeline-form", pipeline: @invalid_attrs)
|> render_change()
assert html =~ "can&#39;t be blank"
assert html =~ "tags must be comma-delimited"
|> render_change() =~ "can&#39;t be blank"
{:ok, _, html} =
show_live