Sha256: b4496f684bdeb4e0ed0d08c56e2567f5881e9b9a889aa752538176ac2d4d2486

Contents?: true

Size: 568 Bytes

Versions: 65

Compression:

Stored size: 568 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 -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

Version data entries

65 entries across 65 versions & 4 rubygems

Version Path
HeSYINUvSBZfxqA-capistrano-2.5.25 test/cli_test.rb
HeSYINUvSBZfxqA-capistrano-2.5.24 test/cli_test.rb
capistrano-2.12.0 test/cli_test.rb
capistrano-2.11.2 test/cli_test.rb
HeSYINUvSBZfxqA-capistrano-2.5.23 test/cli_test.rb
HeSYINUvSBZfxqA-capistrano-2.5.22 test/cli_test.rb
HeSYINUvSBZfxqA-capistrano-2.5.21 test/cli_test.rb
capistrano-2.9.0 test/cli_test.rb
capistrano-2.8.0 test/cli_test.rb
capistrano-2.7.0 test/cli_test.rb
capistrano-2.6.1.pre test/cli_test.rb
capistrano-2.6.0 test/cli_test.rb
capistrano-2.5.21 test/cli_test.rb
capistrano-2.5.20 test/cli_test.rb
le1t0-capistrano-2.5.18.024 test/cli_test.rb
le1t0-capistrano-2.5.18.023 test/cli_test.rb
le1t0-capistrano-2.5.18.022 test/cli_test.rb
le1t0-capistrano-2.5.18.021 test/cli_test.rb
le1t0-capistrano-2.5.18.020 test/cli_test.rb
le1t0-capistrano-2.5.18.019 test/cli_test.rb