mirror of
https://github.com/capistrano/capistrano
synced 2023-03-27 23:21:18 -04:00
3b79481659
git-svn-id: http://svn.rubyonrails.org/rails/tools/capistrano@6321 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
17 lines
582 B
Ruby
17 lines
582 B
Ruby
require "#{File.dirname(__FILE__)}/utils"
|
|
require 'capistrano/cli'
|
|
|
|
class CLI_Test < Test::Unit::TestCase
|
|
def test_options_ui_and_help_modules_should_integrate_successfully_with_configuration
|
|
cli = Capistrano::CLI.parse(%w(-T))
|
|
cli.expects(:puts).at_least_once
|
|
cli.execute!
|
|
end
|
|
|
|
def test_options_and_execute_modules_should_integrate_successfully_with_configuration
|
|
path = "#{File.dirname(__FILE__)}/fixtures/cli_integration.rb"
|
|
cli = Capistrano::CLI.parse(%W(-q -f #{path} testing))
|
|
config = cli.execute!
|
|
assert config[:testing_occurred]
|
|
end
|
|
end
|