mirror of
https://github.com/inspec/inspec
synced 2024-11-10 23:24:18 +00:00
Even more removals and moves!
Turns out we don't even use CMD in any units... so why make it? Lots of other stuff got ripped out. Tests basically shouldn't need to require anything but 1 implementation file and a test framework. Anything more than that is a smell. Signed-off-by: Ryan Davis <zenspider@chef.io>
This commit is contained in:
parent
be125598c8
commit
dfadc393b9
2 changed files with 4 additions and 18 deletions
|
@ -1,16 +1,13 @@
|
|||
|
||||
require 'helper'
|
||||
require 'rbconfig'
|
||||
require 'json'
|
||||
require 'fileutils'
|
||||
require 'yaml'
|
||||
require 'tmpdir'
|
||||
require 'train'
|
||||
|
||||
require 'minitest/hell'
|
||||
class Minitest::Test
|
||||
parallelize_me!
|
||||
end
|
||||
|
||||
CMD = Train.create('local', command_runner: :generic).connection
|
||||
|
||||
class Module
|
||||
include Minitest::Spec::DSL
|
||||
end
|
||||
|
|
|
@ -75,25 +75,14 @@ end
|
|||
|
||||
require 'webmock/minitest'
|
||||
require 'mocha/setup'
|
||||
require 'fileutils'
|
||||
require 'pathname'
|
||||
require 'tempfile'
|
||||
require 'tmpdir'
|
||||
require 'zip'
|
||||
require 'json'
|
||||
|
||||
require 'inspec/version'
|
||||
require 'inspec/log'
|
||||
require 'inspec/backend'
|
||||
require 'train'
|
||||
require "helpers/mock_loader"
|
||||
|
||||
CMD = Train.create('local', command_runner: :generic).connection
|
||||
TMP_CACHE = {}
|
||||
|
||||
Inspec::Log.logger = Logger.new(nil)
|
||||
|
||||
require "helpers/mock_loader"
|
||||
|
||||
def load_resource(*args)
|
||||
m = MockLoader.new(:ubuntu1404)
|
||||
m.send('load_resource', *args)
|
||||
|
|
Loading…
Reference in a new issue