diff --git a/src/chocolatey.tests/infrastructure/commandline/InteractivePromptSpecs.cs b/src/chocolatey.tests/infrastructure/commandline/InteractivePromptSpecs.cs index 20fcbd3287..d62b0c93ee 100644 --- a/src/chocolatey.tests/infrastructure/commandline/InteractivePromptSpecs.cs +++ b/src/chocolatey.tests/infrastructure/commandline/InteractivePromptSpecs.cs @@ -666,7 +666,7 @@ public class when_prompting_answer_with_dash_with_interactivePrompt : Interactiv public override void Context() { base.Context(); - choices.Add("all - yes to all"); + choices.Add("all"); } public override void Because() @@ -683,9 +683,9 @@ public override void AfterObservations() [Fact] public void should_return_all_when_full_all_answer_is_given() { - console.Setup(c => c.ReadLine()).Returns("all - yes to all"); + console.Setup(c => c.ReadLine()).Returns("all"); var result = prompt(); - result.ShouldEqual("all - yes to all"); + result.ShouldEqual("all"); } [Fact] @@ -693,7 +693,7 @@ public void should_return_all_when_only_all_is_given() { console.Setup(c => c.ReadLine()).Returns("all"); var result = prompt(); - result.ShouldEqual("all - yes to all"); + result.ShouldEqual("all"); } } } diff --git a/src/chocolatey/infrastructure.app/services/PowershellService.cs b/src/chocolatey/infrastructure.app/services/PowershellService.cs index 6f1be64f55..e00240c808 100644 --- a/src/chocolatey/infrastructure.app/services/PowershellService.cs +++ b/src/chocolatey/infrastructure.app/services/PowershellService.cs @@ -267,7 +267,7 @@ public bool run_action(ChocolateyConfiguration configuration, PackageResult pack this.Log().Info(ChocolateyLoggers.Important, () => @"choco feature enable -n allowGlobalConfirmation"); var selection = InteractivePrompt.prompt_for_confirmation(@"Do you want to run the script?", - new[] { "yes", "all - yes to all", "no", "print" }, + new[] { "yes", "all", "no", "print" }, defaultChoice: null, requireAnswer: true, allowShortAnswer: true,