|
Revision 6321, 0.6 kB
(checked in by minam, 2 years ago)
|
Make sure the CLI components integrate nicely. Make sure the Configuration components integrate nicely.
|
| Line | |
|---|
| 1 |
require "#{File.dirname(__FILE__)}/utils" |
|---|
| 2 |
require 'capistrano/cli' |
|---|
| 3 |
|
|---|
| 4 |
class CLI_Test < Test::Unit::TestCase |
|---|
| 5 |
def test_options_ui_and_help_modules_should_integrate_successfully_with_configuration |
|---|
| 6 |
cli = Capistrano::CLI.parse(%w(-T)) |
|---|
| 7 |
cli.expects(:puts).at_least_once |
|---|
| 8 |
cli.execute! |
|---|
| 9 |
end |
|---|
| 10 |
|
|---|
| 11 |
def test_options_and_execute_modules_should_integrate_successfully_with_configuration |
|---|
| 12 |
path = "#{File.dirname(__FILE__)}/fixtures/cli_integration.rb" |
|---|
| 13 |
cli = Capistrano::CLI.parse(%W(-q -f |
|---|
| 14 |
config = cli.execute! |
|---|
| 15 |
assert config[:testing_occurred] |
|---|
| 16 |
end |
|---|
| 17 |
end |
|---|