Sha256: ba868722bb7143a22433bdac193057dbc366b9d044e61d93d406501f4b697208
Contents?: true
Size: 940 Bytes
Versions: 53
Compression:
Stored size: 940 Bytes
Contents
require_relative '../../../shared/core_plugin_test_helper.rb' #-----------------------------------------------------------------------# # Plugin Definition #-----------------------------------------------------------------------# class PluginManagerCliDefinitionTests < MiniTest::Test include CorePluginUnitHelper def test_plugin_registered loader = Inspec::Plugin::V2::Loader.new loader.load_all # We want to ensure it is auto-loaded assert registry.known_plugin?(:'inspec-plugin-manager-cli'), 'inspec-plugin-manager-cli should be registered' assert registry.loaded_plugin?(:'inspec-plugin-manager-cli'), 'inspec-plugin-manager-cli should be loaded' status = registry[:'inspec-plugin-manager-cli'] assert_equal 2, status.api_generation, 'inspec-plugin-manager-cli should be v2' assert_includes status.plugin_types, :cli_command, 'inspec-plugin-manager-cli should have cli_command activators' end end
Version data entries
53 entries across 53 versions & 2 rubygems