Merge pull request #4116 from inspec/zenspider/clean_more_requires

Clean more requires
This commit is contained in:
Miah Johnson 2019-05-20 13:07:04 -07:00 committed by GitHub
commit 36029da0a3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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