mirror of
https://github.com/capistrano/capistrano
synced 2023-03-27 23:21:18 -04:00
Modified CLI test to not load user or system configuration file
This commit is contained in:
parent
41876ef190
commit
477fa638c1
1 changed files with 2 additions and 2 deletions
|
@ -3,14 +3,14 @@ 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 = 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
|
||||
|
|
Loading…
Reference in a new issue