From 8c56477f02bc281aaab6825b5a4679ca6f6a4efd Mon Sep 17 00:00:00 2001 From: Ryan Davis Date: Sat, 18 May 2019 15:39:53 -0700 Subject: [PATCH] Fixes a test interaction bug between installer and loader. Not sure how it was supposed to work in the first place. The plugin in question depends on ordinal_array and that wasn't in that fixture dir. Switching to 2 is all it apparently needed. This does cause yet another double-load warning (VERSION already defined). I don't know how we're supposed to get around that with the way we've set up these tests. Signed-off-by: Ryan Davis --- test/unit/plugin/v2/loader_test.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/unit/plugin/v2/loader_test.rb b/test/unit/plugin/v2/loader_test.rb index ccf687a8a..a2d12479d 100644 --- a/test/unit/plugin/v2/loader_test.rb +++ b/test/unit/plugin/v2/loader_test.rb @@ -162,7 +162,7 @@ class PluginLoaderTests < Minitest::Test end def test_load_mock_plugin_by_gem - ENV['INSPEC_CONFIG_DIR'] = File.join(@config_dir_path, 'test-fixture-1-float') + ENV['INSPEC_CONFIG_DIR'] = File.join(@config_dir_path, 'test-fixture-2-float') reg = Inspec::Plugin::V2::Registry.instance plugin_name = :'inspec-test-fixture'