Skip to content
This repository
Fetching contributors…

Cannot retrieve contributors at this time

file 17 lines (15 sloc) 0.568 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
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 -x -X))
    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(-x -X -q -f #{path} testing))
    config = cli.execute!
    assert config[:testing_occurred]
  end
end
Something went wrong with that request. Please try again.