Skip to content

Commit

Permalink
Test node installer with all known architectures
Browse files Browse the repository at this point in the history
  • Loading branch information
schneems committed Oct 8, 2024
1 parent 8ff68ba commit 24e390c
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions spec/helpers/node_installer_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,15 @@

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

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

0 comments on commit 24e390c

Please sign in to comment.