Skip to content

Commit 81298f9

Browse files
committed
Use assert_installed
1 parent d9b2100 commit 81298f9

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

bindings/ruby/tests/test_package.rb

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,9 @@ def test_install
2121
match_data = `rake -Tbuild`.match(/(whispercpp-(.+)\.gem)/)
2222
filename = match_data[1]
2323
version = match_data[2]
24-
basename = "whisper.#{RbConfig::CONFIG["DLEXT"]}"
2524
Dir.mktmpdir do |dir|
2625
system "gem", "install", "--install-dir", dir.shellescape, "--no-document", "pkg/#{filename.shellescape}", exception: true
27-
assert_path_exist File.join(dir, "gems/whispercpp-#{version}/lib", basename)
28-
assert_path_exist File.join(dir, "gems/whispercpp-#{version}/LICENSE")
29-
assert_path_not_exist File.join(dir, "gems/whispercpp-#{version}/ext/build")
26+
assert_installed dir, version
3027
end
3128
end
3229

0 commit comments

Comments
 (0)