Merge pull request #3758 from inspec/ja/fix-profile-context-test

tests: Fix profile_context_test NameError
This commit is contained in:
Clinton Wolfe 2019-01-31 15:53:23 -05:00 committed by GitHub
commit 2be3063e22
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 1 deletions

View file

@ -3,6 +3,7 @@
# author: Dominik Richter
# author: Christoph Hartmann
require 'inspec/log'
require 'inspec/plugin/v2'
module Inspec::DSL
def require_controls(id, &block)

View file

@ -1,8 +1,13 @@
require 'inspec/base_cli'
# The InSpec load order has this file being loaded before `inspec/base_cli` can
# finish being loaded. So, we must define Inspec::BaseCLI here first to avoid
# a NameError below.
class Inspec::BaseCLI < Thor; end
module Inspec::Plugin::V2::PluginType
class CliCommand < Inspec::BaseCLI
# initalize log options for plugins
# initialize log options for plugins
def initialize(args, options, config)
super(args, options, config)
class_options = config.fetch(:class_options, nil)