Allow primary host even when a specific role has been set

This commit is contained in:
David Heinemeier Hansson
2023-03-08 18:00:13 +01:00
parent 32ab79c0cc
commit 155384472a
2 changed files with 6 additions and 1 deletions

View File

@@ -42,4 +42,9 @@ class CommanderTest < ActiveSupport::TestCase
@mrsk.specific_primary!
assert_equal [ "1.1.1.1" ], @mrsk.hosts
end
test "primary_host with specific hosts via role" do
@mrsk.specific_roles = "web"
assert_equal "1.1.1.1", @mrsk.primary_host
end
end