Skip to content

Commit d9b2100

Browse files
committed
Add assert_installed assertion
1 parent ff66aee commit d9b2100

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

bindings/ruby/tests/test_package.rb

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,14 @@ def test_install
2929
assert_path_not_exist File.join(dir, "gems/whispercpp-#{version}/ext/build")
3030
end
3131
end
32+
33+
private
34+
35+
def assert_installed(dir, version)
36+
assert_path_exist File.join(dir, "gems/whispercpp-#{version}/lib", "whisper.#{RbConfig::CONFIG["DLEXT"]}")
37+
assert_path_exist File.join(dir, "gems/whispercpp-#{version}/LICENSE")
38+
assert_path_not_exist File.join(dir, "gems/whispercpp-#{version}/ext/build")
39+
end
3240
end
3341

3442
def test_build_options

0 commit comments

Comments
 (0)