Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Library/Homebrew/bundle/mac_app_store_installer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def self.install!(name, id, preinstall: true, no_upgrade: false, verbose: false,

puts "Installing #{name} app. It is not currently installed." if verbose

return false unless Bundle.system "mas", "install", id.to_s, verbose: verbose
return false unless Bundle.system "mas", "get", id.to_s, verbose: verbose

installed_app_ids << id
true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@
end

it "installs app" do
expect(Homebrew::Bundle).to receive(:system).with("mas", "install", "123", verbose: false).and_return(true)
expect(Homebrew::Bundle).to receive(:system).with("mas", "get", "123", verbose: false).and_return(true)
expect(described_class.preinstall!("foo", 123)).to be(true)
expect(described_class.install!("foo", 123)).to be(true)
end
Expand Down
Loading