From b7a298e1ecf8abf33771307630579b8351dc99f0 Mon Sep 17 00:00:00 2001 From: thibhero Date: Sun, 2 Mar 2025 20:04:02 -0500 Subject: [PATCH] first test to check option `--ask` --- Library/Homebrew/test/cmd/install_spec.rb | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/Library/Homebrew/test/cmd/install_spec.rb b/Library/Homebrew/test/cmd/install_spec.rb index 4772947bf0..11eb405c78 100644 --- a/Library/Homebrew/test/cmd/install_spec.rb +++ b/Library/Homebrew/test/cmd/install_spec.rb @@ -84,4 +84,15 @@ RSpec.describe Homebrew::Cmd::InstallCmd do expect(HOMEBREW_CELLAR/"testball1/0.1/bin/test.dSYM/Contents/Resources/DWARF/test").to be_a_file if OS.mac? expect(HOMEBREW_CACHE/"Sources/testball1").to be_a_directory end + + it "installs with asking for user prompts without installed dependent checks", :integration_test do + setup_test_formula "testball1" + + expect { + brew "install", "--ask", "testball1" + }.to output(/Formulae:\s*testball1/).to_stdout.and not_to_output.to_stderr + + expect(HOMEBREW_CELLAR/"testball1/0.1/bin/test").to be_a_file + end + end