mirror of
https://github.com/inspec/inspec
synced 2024-11-10 15:14:23 +00:00
Update UX message testing
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
This commit is contained in:
parent
918acb01c1
commit
88962af285
2 changed files with 3 additions and 3 deletions
|
@ -207,7 +207,7 @@ module InspecPlugins
|
|||
|
||||
# Already installed?
|
||||
if registry.known_plugin?(plugin_name.to_sym)
|
||||
ui.red("Plugin already installed - #{plugin_name} - Use '#{EXEC_NAME}" \
|
||||
ui.red("Plugin already installed - #{plugin_name} - Use '#{EXEC_NAME} " \
|
||||
"plugin list' to see previously installed plugin - " \
|
||||
"installation failed.")
|
||||
ui.exit Inspec::UI::EXIT_PLUGIN_ERROR
|
||||
|
|
|
@ -718,7 +718,7 @@ class PluginManagerCliUpdate < Minitest::Test
|
|||
update_result = run_inspec_process_with_this_plugin("plugin update inspec-test-fixture-nonesuch")
|
||||
|
||||
skip_windows!
|
||||
assert_match(/No such plugin installed: .+ - update failed/, update_result.stdout)
|
||||
assert_match(/No such plugin installed:.+ - update failed/, update_result.stdout)
|
||||
|
||||
assert_empty update_result.stderr
|
||||
|
||||
|
@ -808,7 +808,7 @@ class PluginManagerCliUninstall < Minitest::Test
|
|||
|
||||
skip_windows!
|
||||
refute_includes "Inspec::Plugin::V2::UnInstallError", uninstall_result.stdout # Stacktrace marker
|
||||
assert_match(/No such plugin installed: .+ - uninstall failed/, uninstall_result.stdout)
|
||||
assert_match(/No such plugin installed:.+ - uninstall failed/, uninstall_result.stdout)
|
||||
|
||||
assert_empty uninstall_result.stderr
|
||||
|
||||
|
|
Loading…
Reference in a new issue