public
Description: Remote multi-server automation tool
Homepage: http://www.capify.org
Clone URL: git://github.com/jamis/capistrano.git
Search Repo:
capistrano / test / role_test.rb
100644 12 lines (10 sloc) 0.331 kb
1
2
3
4
5
6
7
8
9
10
11
12
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