Skip to content

Commit

Permalink
refactor(AllowedTags): Small tests refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
Eduardo committed Jun 8, 2023
1 parent d0d7caf commit 4d348fa
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions test/config_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4d348fa

Please sign in to comment.