Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Modified CLI test to not load user or system configuration file

  • Loading branch information...
commit 477fa638c116aa50ac0ba9d8d9251dfb127bf738 1 parent 41876ef
Emily Hyland duien authored leehambley committed
Showing with 2 additions and 2 deletions.
  1. +2 −2 test/cli_test.rb
4 test/cli_test.rb
View
@@ -3,14 +3,14 @@
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 = 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(-q -f #{path} testing))
+ cli = Capistrano::CLI.parse(%W(-x -X -q -f #{path} testing))
config = cli.execute!
assert config[:testing_occurred]
end
Please sign in to comment.
Something went wrong with that request. Please try again.