mirror of
https://github.com/inspec/inspec
synced 2025-02-17 06:28:40 +00:00
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> |
||
---|---|---|
.. | ||
api_base_test.rb | ||
api_cli_test.rb | ||
api_dsl_test.rb | ||
back_compat_test.rb | ||
installer_test.rb | ||
loader_test.rb | ||
plugin_conf_test.rb |