Changeset 17 for trunk/test
- Timestamp:
- 10/15/07 16:13:50 (15 months ago)
- Location:
- trunk/test
- Files:
-
- 3 modified
-
test_helper.rb (modified) (1 diff)
-
unit/role_test.rb (modified) (1 diff)
-
unit/webistrano_deployer_test.rb (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/test_helper.rb
r1 r17 131 131 :host => create_new_host, 132 132 :primary => 0, 133 :no_release => 0 133 :no_release => 0, 134 :no_symlink => 0 134 135 }.update(options) 135 136 -
trunk/test/unit/role_test.rb
r1 r17 182 182 183 183 assert_nil role.ssh_port 184 assert_equal Role::DEFAULT_SSH_PORT, role.port 185 assert_equal "schaka.com:22", role.hostname_and_port 186 187 role.ssh_port = 2222 188 assert_equal 2222, role.port 189 184 assert_equal "schaka.com", role.hostname_and_port 185 186 role.ssh_port = 2222 190 187 assert_equal "schaka.com:2222", role.hostname_and_port 188 189 role.ssh_port = nil 190 assert_equal "schaka.com", role.hostname_and_port 191 191 end 192 192 -
trunk/test/unit/webistrano_deployer_test.rb
r11 r17 92 92 93 93 # roles 94 mock_cap_config.expects(:role).with('www', @host.name + ":22")95 mock_cap_config.expects(:role).with('app', @host.name + ":22", {:primary => true})94 mock_cap_config.expects(:role).with('www', @host.name) 95 mock_cap_config.expects(:role).with('app', @host.name, {:primary => true}) 96 96 97 97 # main mock install … … 144 144 # now check the roles 145 145 # 146 mock_cap_config.expects(:role).with('www', @host.name + ":22", {:primary => true})146 mock_cap_config.expects(:role).with('www', @host.name, {:primary => true}) 147 147 mock_cap_config.expects(:role).with('app', @host.name + ":99", {:no_release => true}) 148 148 mock_cap_config.expects(:role).with('db', @host.name + ":44", {:no_release => true, :primary => true})
