From 4d348fa6e66cf3b60dd6606caf2c72e7f611b138 Mon Sep 17 00:00:00 2001 From: Eduardo Date: Thu, 8 Jun 2023 20:32:59 +0000 Subject: [PATCH] refactor(AllowedTags): Small tests refactoring --- test/config_test.exs | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/test/config_test.exs b/test/config_test.exs index 40e33f0..de96a2d 100644 --- a/test/config_test.exs +++ b/test/config_test.exs @@ -93,17 +93,13 @@ defmodule GitOps.Test.ConfigTest do end test "Allowed tags configuration returns correcly" do - allowed_tags = Config.allowed_tags() - - assert allowed_tags == ["tag_1", "tag_2"] + assert Config.allowed_tags() == ["tag_1", "tag_2"] end - test "Allowed tags without being set in configuration returns :any" do - Application.delete_env(:git_ops, :allowed_tags) - - allowed_tags = Config.allowed_tags() + test "Allowed tags configuration returns :any if not set" do + Application.delete_env(:git_ops, :tags) - assert allowed_tags == :any + assert Config.allowed_tags() == :any end test "custom prefixes returns correctly" do