Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

18 lines (15 sloc) 0.556 kB
require "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
Jump to Line
Something went wrong with that request. Please try again.