Merge pull request #212 from basecamp/role-primary-hosts

Pull the primary host from the role
This commit is contained in:
David Heinemeier Hansson
2023-04-12 14:09:38 +02:00
committed by GitHub
2 changed files with 3 additions and 3 deletions

View File

@@ -47,8 +47,8 @@ class CommanderTest < ActiveSupport::TestCase
end
test "primary_host with specific hosts via role" do
@mrsk.specific_roles = "web"
assert_equal "1.1.1.1", @mrsk.primary_host
@mrsk.specific_roles = "workers"
assert_equal "1.1.1.3", @mrsk.primary_host
end
test "roles_on" do