Method: Inspec::OrTest#to_ruby

Defined in:
lib/inspec/objects/or_test.rb

#to_rubyObject



14
15
16
17
# File 'lib/inspec/objects/or_test.rb', line 14

def to_ruby
  all_tests = @tests.map(&:to_ruby).join("\n").gsub("\n", "\n  ")
  format("describe.one do\n  %s\nend", all_tests)
end