Skip to content

Commit

Permalink
Replace the Faker.Beer to Faker.Color
Browse files Browse the repository at this point in the history
  • Loading branch information
EMaksy committed Sep 30, 2022
1 parent 90945be commit f318048
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions test/trento_web/controllers/tags_controller_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ defmodule TrentoWeb.TagsControllerTest do
use TrentoWeb.ConnCase, async: true

import Trento.Factory

alias Faker.Color
alias Trento.Tag

describe "Tag Validation" do
Expand Down Expand Up @@ -37,7 +37,7 @@ defmodule TrentoWeb.TagsControllerTest do
test "should add a tag to a sap system", %{conn: conn} do
conn =
post(conn, Routes.sap_systems_tagging_path(conn, :add_tag, Faker.UUID.v4()), %{
"value" => String.replace(Faker.Beer.style(), " ", "")
"value" => Color.En.name()
})

assert 201 == conn.status
Expand Down Expand Up @@ -78,7 +78,7 @@ defmodule TrentoWeb.TagsControllerTest do
test "should add a tag to a database", %{conn: conn} do
conn =
post(conn, Routes.databases_tagging_path(conn, :add_tag, Faker.UUID.v4()), %{
"value" => String.replace(Faker.Beer.style(), " ", "")
"value" => Color.En.name()
})

assert 201 == conn.status
Expand All @@ -102,7 +102,7 @@ defmodule TrentoWeb.TagsControllerTest do
test "should add a tag to a cluster", %{conn: conn} do
conn =
post(conn, Routes.clusters_tagging_path(conn, :add_tag, Faker.UUID.v4()), %{
"value" => tag_value = String.replace(Faker.Beer.style(), " ", "")
"value" => tag_value = Color.En.name()
})

assert json_response(conn, 201)["value"] == tag_value
Expand Down Expand Up @@ -143,7 +143,7 @@ defmodule TrentoWeb.TagsControllerTest do
test "should add a tag to a host", %{conn: conn} do
conn =
post(conn, Routes.hosts_tagging_path(conn, :add_tag, Faker.UUID.v4()), %{
"value" => String.replace(Faker.Beer.style(), " ", "")
"value" => Color.En.name()
})

assert 201 == conn.status
Expand Down

0 comments on commit f318048

Please sign in to comment.