Sha256: 8d42a9ecd0a57945786c5ba8ece52c74211be097902f512049c414527390e44b
Contents?: true
Size: 330 Bytes
Versions: 4
Compression:
Stored size: 330 Bytes
Contents
# encoding:utf-8 module Inspec class OrTest def initialize(tests) @tests = tests end def skip nil end def to_ruby format("describe.one do\n %s\nend", @tests.map(&:to_ruby).join("\n")) end def to_hash { describe_one: @tests.map(&:to_hash) } end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
inspec-0.19.1 | lib/inspec/objects/or_test.rb |
inspec-0.19.0 | lib/inspec/objects/or_test.rb |
inspec-0.18.0 | lib/inspec/objects/or_test.rb |
inspec-0.17.1 | lib/inspec/objects/or_test.rb |