Sha256: bf20380bd7f32b262c19425ec5112d2219af67fa481f60cf7e6098589f2792d2

Contents?: true

Size: 556 Bytes

Versions: 31

Compression:

Stored size: 556 Bytes

Contents

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

Version data entries

31 entries across 31 versions & 8 rubygems

Version Path
wulffeld-capistrano-2.5.8.3 test/cli_test.rb
dan-capistrano-2.5.6 test/cli_test.rb
fotonauts-capistrano-2.5.2 test/cli_test.rb
mbailey-capistrano-2.5.5 test/cli_test.rb
mbailey-capistrano-2.5.6 test/cli_test.rb
mbailey-capistrano-2.5.7 test/cli_test.rb
sneakin-capistrano-2.5.5 test/cli_test.rb
thoughtbot-capistrano-2.5.5 test/cli_test.rb
thoughtbot-capistrano-2.5.6 test/cli_test.rb
wulffeld-capistrano-2.5.8.1 test/cli_test.rb
wulffeld-capistrano-2.5.8 test/cli_test.rb
wulffeld-capistrano-2.5.8.2 test/cli_test.rb
capistrano-2.5.12 test/cli_test.rb
capistrano-2.5.11 test/cli_test.rb
capistrano-2.5.10 test/cli_test.rb
capistrano-2.5.9 test/cli_test.rb
capistrano-2.5.6 test/cli_test.rb
capistrano-2.5.7 test/cli_test.rb
capistrano-2.5.8 test/cli_test.rb
capistrano-2.4.1 test/cli_test.rb