487
488
489
490
491
492
493
494
495
496
497
|
# File 'lib/plugins/inspec-plugin-manager-cli/test/functional/inspec-plugin_test.rb', line 487
def test_refuse_install_when_missing_prefix
install_result = run_inspec_process_with_this_plugin("plugin install test-fixture")
assert_empty install_result.stderr
assert_equal 1, install_result.exit_status, "Exit status should be 1"
fail_message = install_result.stdout.split("\n").grep(/failed/).last
refute_nil fail_message, "Should find a failure message at the end"
assert_includes fail_message, "test-fixture"
assert_includes fail_message, "All inspec plugins must begin with either 'inspec-' or 'train-'"
end
|