Method: Inspec::Config.mock

Defined in:
lib/inspec/config.rb

.mock(opts = {}) ⇒ Object

This makes it easy to make a config with a mock backend.



41
42
43
# File 'lib/inspec/config.rb', line 41

def self.mock(opts = {})
  Inspec::Config.new({ backend: :mock }.merge(opts), StringIO.new("{}"))
end