diff options
Diffstat (limited to 'Library/Homebrew/test/cask/artifact/preflight_block_spec.rb')
| -rw-r--r-- | Library/Homebrew/test/cask/artifact/preflight_block_spec.rb | 6 | 
1 files changed, 4 insertions, 2 deletions
diff --git a/Library/Homebrew/test/cask/artifact/preflight_block_spec.rb b/Library/Homebrew/test/cask/artifact/preflight_block_spec.rb index b13c4ab9d..d7d4e72d9 100644 --- a/Library/Homebrew/test/cask/artifact/preflight_block_spec.rb +++ b/Library/Homebrew/test/cask/artifact/preflight_block_spec.rb @@ -11,7 +11,8 @@ describe Hbc::Artifact::PreflightBlock, :cask do          end        end -      described_class.new(cask).install_phase +      described_class.for_cask(cask) +        .each { |artifact| artifact.install_phase(command: Hbc::NeverSudoSystemCommand, force: false) }        expect(called).to be true        expect(yielded_arg).to be_kind_of Hbc::DSL::Preflight @@ -30,7 +31,8 @@ describe Hbc::Artifact::PreflightBlock, :cask do          end        end -      described_class.new(cask).uninstall_phase +      described_class.for_cask(cask) +        .each { |artifact| artifact.uninstall_phase(command: Hbc::NeverSudoSystemCommand, force: false) }        expect(called).to be true        expect(yielded_arg).to be_kind_of Hbc::DSL::UninstallPreflight  | 
