Skip to content

Commit 6c2da20

Browse files
committed
Test build options
1 parent 196790e commit 6c2da20

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

bindings/ruby/tests/helper.rb

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,15 @@ def startup
2121
def whisper
2222
self.class.whisper
2323
end
24+
25+
module BuildOptions
26+
load "ext/options.rb", self
27+
Options.include self
28+
29+
def enable_config(name)
30+
end
31+
32+
def arg_config(name)
33+
end
34+
end
2435
end

bindings/ruby/tests/test_package.rb

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,10 @@ def test_install
3030
end
3131
end
3232
end
33+
34+
def test_build_options
35+
options = BuildOptions::Options.new
36+
assert_empty options.missing_options
37+
assert_empty options.extra_options
38+
end
3339
end

0 commit comments

Comments
 (0)