inspec/test/unit/plugin/v2
Ryan Davis 8f3e1a0fe5 Fixes test failure interaction between Loader and Installer tests.
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>
2019-05-17 02:26:07 -07:00
..
api_base_test.rb Modernize use of Minitest. 2019-05-03 15:01:57 -07:00
api_cli_test.rb Remove all byebug requires in code. 2019-05-14 23:24:14 -07:00
api_dsl_test.rb Normalizing two test declarations. 2019-05-14 23:27:18 -07:00
back_compat_test.rb Modernize use of Minitest. 2019-05-03 15:01:57 -07:00
installer_test.rb Fixes test failure interaction between Loader and Installer tests. 2019-05-17 02:26:07 -07:00
loader_test.rb Fixes test failure interaction between Loader and Installer tests. 2019-05-17 02:26:07 -07:00
plugin_conf_test.rb Modernize use of Minitest. 2019-05-03 15:01:57 -07:00