Skip to content

Commit

Permalink
Merge pull request #1328 from Okeanos/fix-vscode-tests
Browse files Browse the repository at this point in the history
Fix references to VSCode in extension installer test
  • Loading branch information
MikeMcQuaid authored Mar 28, 2024
2 parents 6b81dab + 31ac8e2 commit 77f4db8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions spec/bundle/vscode_extension_installer_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 77f4db8

Please sign in to comment.