mirror of
https://github.com/inspec/inspec
synced 2024-11-10 23:24:18 +00:00
Please also stop warning about VERSION being defined.
This removes ::InspecPlugins::TestFixture in installer_test and loader_test on every test. Please... no more output in our test runs... Signed-off-by: Ryan Davis <zenspider@chef.io>
This commit is contained in:
parent
327e571ce9
commit
6330fa486f
2 changed files with 13 additions and 1 deletions
|
@ -17,7 +17,12 @@ module InstallerTestHelpers
|
|||
def reset_globals
|
||||
ENV["HOME"] = @@orig_home
|
||||
ENV["INSPEC_CONFIG_DIR"] = nil
|
||||
@installer.__reset
|
||||
@installer && @installer.__reset
|
||||
if defined?(::InspecPlugins::TestFixture)
|
||||
InspecPlugins.send :remove_const, :TestFixture
|
||||
end
|
||||
# forget all test fixture files
|
||||
$".reject! { |path| path =~ %r{test/fixtures} }
|
||||
end
|
||||
|
||||
def copy_in_config_dir(fixture_name)
|
||||
|
@ -513,6 +518,8 @@ class PluginInstallerSearchTests < Minitest::Test
|
|||
end
|
||||
|
||||
def test_search_omits_inspec_gem_on_the_reject_list
|
||||
skip_slow_tests
|
||||
|
||||
results = @installer.search("inspec-")
|
||||
assert results.key?("inspec-test-fixture")
|
||||
|
||||
|
|
|
@ -17,6 +17,11 @@ class PluginLoaderTests < Minitest::Test
|
|||
ENV["HOME"] = @@orig_home
|
||||
ENV["INSPEC_CONFIG_DIR"] = nil
|
||||
Inspec::Plugin::V2::Registry.instance.__reset
|
||||
if defined?(::InspecPlugins::TestFixture)
|
||||
InspecPlugins.send :remove_const, :TestFixture
|
||||
end
|
||||
# forget all test fixture files
|
||||
$".reject! { |path| path =~ %r{test/fixtures} }
|
||||
end
|
||||
|
||||
def setup
|
||||
|
|
Loading…
Reference in a new issue