mirror of
https://github.com/capistrano/capistrano
synced 2023-03-27 23:21:18 -04:00
11 lines
331 B
Ruby
11 lines
331 B
Ruby
require "utils"
|
|
require 'capistrano/role'
|
|
|
|
class RoleTest < Test::Unit::TestCase
|
|
def test_clearing_a_populated_role_should_yield_no_servers
|
|
role = Capistrano::Role.new("app1.capistrano.test", lambda { |o| "app2.capistrano.test" })
|
|
assert_equal 2, role.servers.size
|
|
role.clear
|
|
assert role.servers.empty?
|
|
end
|
|
end
|