mirror of
https://github.com/inspec/inspec
synced 2024-11-26 14:40:26 +00:00
Clean more requires
Signed-off-by: Ryan Davis <zenspider@chef.io>
This commit is contained in:
parent
d665efc8c8
commit
e1061f41f2
3 changed files with 3 additions and 7 deletions
|
@ -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]
|
||||
|
|
|
@ -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 = {}
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue