Skip to content

Commit

Permalink
Update installer spec tests
Browse files Browse the repository at this point in the history
  • Loading branch information
schneems committed Oct 8, 2024
1 parent 8ff68ba commit 938a7f4
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions spec/helpers/node_installer_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,26 @@

describe LanguagePack::Helpers::NodeInstaller do
describe "#install" do
it "should extract a node binary" do
it "should extract a node binary on ARM" do
Dir.mktmpdir do |dir|
Dir.chdir(dir) do
installer = LanguagePack::Helpers::NodeInstaller.new
installer = LanguagePack::Helpers::NodeInstaller.new(arch: "arm64")
installer.install

expect(File.exist?("node")).to be(true)
end
end
end
end

it "should extract a node binary on AMD" do
Dir.mktmpdir do |dir|
Dir.chdir(dir) do
installer = LanguagePack::Helpers::NodeInstaller.new(arch: "amd64")
installer.install

expect(File.exist?("node")).to be(true)
end
end
end
end

0 comments on commit 938a7f4

Please sign in to comment.