diff --git a/lib/inspec/plugin/v2/loader.rb b/lib/inspec/plugin/v2/loader.rb index 8feb19bfa..d50bf325a 100644 --- a/lib/inspec/plugin/v2/loader.rb +++ b/lib/inspec/plugin/v2/loader.rb @@ -263,10 +263,6 @@ module Inspec::Plugin::V2 def fixup_train_plugin_status(status) status.api_generation = :'train-1' - if status.installation_type == :user_gem - # Activate the gem. This allows train to 'require' the gem later. - activate_managed_gems_for_plugin(status.entry_point) - end end def find_inspec_gemspec(name, ver) diff --git a/lib/plugins/inspec-plugin-manager-cli/test/functional/install_test.rb b/lib/plugins/inspec-plugin-manager-cli/test/functional/install_test.rb index 71325710c..6d4aa8d02 100644 --- a/lib/plugins/inspec-plugin-manager-cli/test/functional/install_test.rb +++ b/lib/plugins/inspec-plugin-manager-cli/test/functional/install_test.rb @@ -32,8 +32,8 @@ class PluginManagerCliInstall < Minitest::Test given: File.join("test", "fixtures", "plugins", "inspec-test-fixture", "lib", "inspec-test-fixture.rb"), }, "refers_to_a_train_plugin" => { - given: File.join(core_config_dir_path, "train-test-fixture", "gems", ruby_abi_version, "gems", "train-test-fixture-0.1.0", "lib", "train-test-fixture.rb"), plugin_name: "train-test-fixture", + given: File.join(core_config_dir_path, "train-test-fixture", "gems", ruby_abi_version, "gems", "train-test-fixture-0.1.0", "lib", "train-test-fixture.rb"), resolved_path: File.join(core_config_dir_path, "train-test-fixture", "gems", ruby_abi_version, "gems", "train-test-fixture-0.1.0", "lib", "train-test-fixture.rb"), }, }.each do |test_name, fixture_info|