From 31ac8e22427edbfc876ffedfc118a43b1234a43a Mon Sep 17 00:00:00 2001 From: Nikolas Grottendieck Date: Thu, 28 Mar 2024 15:42:58 +0100 Subject: [PATCH] Fix references to VSCode in extension installer test Replace references to 'apps' and 'mas' with the VSCode appropriate terms. --- spec/bundle/vscode_extension_installer_spec.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/spec/bundle/vscode_extension_installer_spec.rb b/spec/bundle/vscode_extension_installer_spec.rb index f4f1f911f..078af40f7 100644 --- a/spec/bundle/vscode_extension_installer_spec.rb +++ b/spec/bundle/vscode_extension_installer_spec.rb @@ -9,7 +9,7 @@ allow(Bundle).to receive_messages(vscode_installed?: false, cask_installed?: true) end - it "tries to install mas" do + it "tries to install vscode" do expect(Bundle).to \ receive(:system).with(HOMEBREW_BREW_FILE, "install", "--cask", "visual-studio-code", verbose: false) .and_return(true) @@ -19,10 +19,10 @@ context "when VSCode is installed" do before do - allow(Bundle).to receive(:mas_installed?).and_return(true) + allow(Bundle).to receive(:vscode_installed?).and_return(true) end - context "when app is installed" do + context "when extension is installed" do before do allow(described_class).to receive(:installed_extensions).and_return(["foo"]) end @@ -38,7 +38,7 @@ end end - context "when app is not installed" do + context "when extension is not installed" do before do allow(described_class).to receive(:installed_extensions).and_return([]) end