inspec/test/unit
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
..
bundles/inspec-supermarket Move compliance to v2 plugin (#3423) 2018-10-04 14:31:39 -04:00
dependencies Add parent_profile field in json output (#3164) 2018-06-26 13:04:31 -04:00
dsl Remove # encoding: utf8 magic comments 2019-05-07 16:06:23 -07:00
fetchers Normalizing two test declarations. 2019-05-14 23:27:18 -07:00
inputs Remove # encoding: utf8 magic comments 2019-05-07 16:06:23 -07:00
matchers Fixed 3 failures in cmp matcher. 2019-05-17 02:26:06 -07:00
mock Merge branch 'master' into mj/encoding 2019-05-08 12:59:55 -07:00
plugin Fixes test failure interaction between Loader and Installer tests. 2019-05-17 02:26:07 -07:00
profiles Remove # encoding: utf8 magic comments 2019-05-07 16:06:23 -07:00
reporters Remove # encoding: utf8 magic comments 2019-05-07 16:06:23 -07:00
resource_supports/aws Remove # encoding: utf8 magic comments 2019-05-07 16:06:23 -07:00
resources Fixed missing requires 2019-05-17 02:26:06 -07:00
source_readers Remove # encoding: utf8 magic comments 2019-05-07 16:06:23 -07:00
utils Merge branch 'master' into mj/encoding 2019-05-08 12:59:55 -07:00
backend_test.rb Remove encoding: utf-8 2019-02-07 13:04:58 -08:00
base_cli_test.rb Remove # encoding: utf8 magic comments 2019-05-07 16:06:23 -07:00
cached_fetcher.rb Replace most mentions of attribute with input in test/ 2019-02-20 20:41:10 -05:00
config_test.rb Add caching to Inspec::Config 2019-03-06 14:59:06 -05:00
file_provider_test.rb Remove # encoding: utf8 magic comments 2019-05-07 16:06:23 -07:00
helper.rb Remove all byebug requires in code. 2019-05-14 23:24:14 -07:00
impact_test.rb Remove # encoding: utf8 magic comments 2019-05-07 16:06:23 -07:00
runner_test.rb Remove # encoding: utf8 magic comments 2019-05-07 16:06:23 -07:00
shell_detector_test.rb Remove # encoding: utf8 magic comments 2019-05-07 16:06:23 -07:00
ui_test.rb Modernize use of Minitest. 2019-05-03 15:01:57 -07:00