Skip to content

Commit f96eb78

Browse files
committed
test for OpenSCAP::Xccdf::PolicyModel creation
1 parent cb72436 commit f96eb78

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

test/xccdf/benchmark_test.rb

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
require 'openscap/ds/sds'
1515
require 'openscap/source'
1616
require 'openscap/xccdf/benchmark'
17+
require 'openscap/xccdf/policy_model'
1718

1819
class TestBenchmark < OpenSCAP::TestCase
1920
def test_new_from_file
@@ -112,6 +113,12 @@ def test_items_fixes
112113
b.destroy
113114
end
114115

116+
def test_policy_model_creation
117+
b = benchmark_from_file
118+
pm = OpenSCAP::Xccdf::PolicyModel.new b
119+
pm.destroy
120+
end
121+
115122
private
116123

117124
def benchmark_from_file

0 commit comments

Comments
 (0)