Skip to content

Commit f2dec8e

Browse files
author
Ian Watson
committed
Adding test for idents and fixing import on rule.rb for ident class
1 parent f85becb commit f2dec8e

File tree

5 files changed

+275213
-3
lines changed

5 files changed

+275213
-3
lines changed

lib/openscap/xccdf/ident.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
module OpenSCAP
1313
module Xccdf
14-
class Ident
14+
class Ident
1515
def initialize(raw)
1616
raise OpenSCAP::OpenSCAPError, "Cannot initialize #{self.class.name} with '#{raw}'" \
1717
unless raw.is_a?(FFI::Pointer)
@@ -29,4 +29,4 @@ def id
2929
end
3030
attach_function :xccdf_ident_get_system, [:pointer], :string
3131
attach_function :xccdf_ident_get_id, [:pointer], :string
32-
end
32+
end

lib/openscap/xccdf/item.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ def rationale(prefered_lang = nil)
6262
rationale = textlist.plaintext(prefered_lang)
6363
textlist.destroy
6464
rationale
65-
end
65+
end
6666

6767
def references
6868
refs = []

lib/openscap/xccdf/rule.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
require 'openscap/exceptions'
1313
require 'openscap/xccdf/item'
1414
require 'openscap/xccdf/fix'
15+
require 'openscap/xccdf/ident'
1516

1617
module OpenSCAP
1718
module Xccdf

0 commit comments

Comments
 (0)