Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

12 lines (10 sloc) 0.331 kb
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
Jump to Line
Something went wrong with that request. Please try again.