mirror of
https://github.com/inspec/inspec
synced 2024-11-23 05:03:07 +00:00
Merge pull request #4116 from inspec/zenspider/clean_more_requires
Clean more requires
This commit is contained in:
commit
36029da0a3
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