Clean more requires

Signed-off-by: Ryan Davis <zenspider@chef.io>
This commit is contained in:
Ryan Davis 2019-05-18 17:02:34 -07:00
parent d665efc8c8
commit e1061f41f2
3 changed files with 3 additions and 7 deletions

View file

@ -24,7 +24,7 @@ module Inspec
def example_group
that = self
opts = { 'caller' => calls[0][3] }
opts = { 'caller' => calls[0][3] } # TODO: this needs overhaul. no magic #s
if !calls[0][3].nil? && !calls[0][3].empty? &&
(m = calls[0][3][0].match(/^([^:]*):(\d+):/))
opts['file_path'] = m[0]

View file

@ -101,10 +101,9 @@ require 'inspec/impact'
require 'inspec/config'
require 'fetchers/mock'
require 'inspec/dependencies/cache'
require_relative '../lib/bundles/inspec-supermarket'
require 'bundles/inspec-supermarket'
require 'train'
CMD = Train.create('local', command_runner: :generic).connection
TMP_CACHE = {}

View file

@ -1,9 +1,6 @@
# require 'helper'
require 'minitest/autorun'
require 'inspec/ui'
require 'inspec/base_cli'
require 'inspec/errors'
require 'stringio'
# https://gist.github.com/chrisopedia/8754917