forked from shibao/cannery
fix tag field names
This commit is contained in:
@ -6,9 +6,9 @@ defmodule Cannery.TagsTest do
|
||||
describe "tags" do
|
||||
alias Cannery.Tags.Tag
|
||||
|
||||
@valid_attrs %{"bg-color": "some bg-color", name: "some name", "text-color": "some text-color"}
|
||||
@update_attrs %{"bg-color": "some updated bg-color", name: "some updated name", "text-color": "some updated text-color"}
|
||||
@invalid_attrs %{"bg-color": nil, name: nil, "text-color": nil}
|
||||
@valid_attrs %{bg_color: "some bg-color", name: "some name", text_color: "some text-color"}
|
||||
@update_attrs %{bg_color: "some updated bg-color", name: "some updated name", text_color: "some updated text-color"}
|
||||
@invalid_attrs %{bg_color: nil, name: nil, text_color: nil}
|
||||
|
||||
def tag_fixture(attrs \\ %{}) do
|
||||
{:ok, tag} =
|
||||
|
@ -5,9 +5,9 @@ defmodule CanneryWeb.TagLiveTest do
|
||||
|
||||
alias Cannery.Tags
|
||||
|
||||
@create_attrs %{"bg-color": "some bg-color", name: "some name", "text-color": "some text-color"}
|
||||
@update_attrs %{"bg-color": "some updated bg-color", name: "some updated name", "text-color": "some updated text-color"}
|
||||
@invalid_attrs %{"bg-color": nil, name: nil, "text-color": nil}
|
||||
@create_attrs %{bg_color: "some bg-color", name: "some name", text_color: "some text-color"}
|
||||
@update_attrs %{bg_color: "some updated bg-color", name: "some updated name", text_color: "some updated text-color"}
|
||||
@invalid_attrs %{bg_color: nil, name: nil, text_color: nil}
|
||||
|
||||
defp fixture(:tag) do
|
||||
{:ok, tag} = Tags.create_tag(@create_attrs)
|
||||
|
Reference in New Issue
Block a user