mirror of
https://github.com/inspec/inspec
synced 2024-09-21 15:02:01 +00:00
8f3e1a0fe5
Specifically, if these were run in this order: + PluginLoaderTests#test_load_mock_plugin_by_gem + PluginInstallerInstallationTests#test_install_a_gem_from_local_file the latter would fail. The failure was in test setup. The solution was partially to crib off of and normalize with LoaderTest setup/teardown and partially to set extra things. Specifically: + HOME wasn't being set so it was finding my ~/.inspec/plugins.json + ENV wasn't being reset for Gem.paths + Installer wasn't being reset correctly, so plugins were known across tests. Signed-off-by: Ryan Davis <zenspider@chef.io> |
||
---|---|---|
.. | ||
bundles/inspec-supermarket | ||
dependencies | ||
dsl | ||
fetchers | ||
inputs | ||
matchers | ||
mock | ||
plugin | ||
profiles | ||
reporters | ||
resource_supports/aws | ||
resources | ||
source_readers | ||
utils | ||
backend_test.rb | ||
base_cli_test.rb | ||
cached_fetcher.rb | ||
config_test.rb | ||
file_provider_test.rb | ||
helper.rb | ||
impact_test.rb | ||
runner_test.rb | ||
shell_detector_test.rb | ||
ui_test.rb |