mirror of
https://github.com/inspec/inspec
synced 2024-11-10 07:04:15 +00:00
a8e0c5c435
* Failing test for Ruby 3.1 - ERB.new call options changed Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com> * Fix for Ruby 3.1 by using named params to ERB.new Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com> * Restrict test to non-windows systems Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com> * Restrict test to non-windows systems Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com> Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
23 lines
No EOL
579 B
Ruby
23 lines
No EOL
579 B
Ruby
require "functional/helper"
|
|
|
|
describe "inspec env" do
|
|
include FunctionalHelper
|
|
|
|
parallelize_me!
|
|
|
|
describe "inspec env with no args" do
|
|
# env is a command only supported for
|
|
# bash, zsh, and fish shells - so mac and linux
|
|
unless windows?
|
|
it "runs without warnings" do
|
|
result = run_inspec_process("env")
|
|
|
|
assert_empty result.stderr
|
|
assert_exit_code 0, result
|
|
|
|
# Part of the successful help usage message at the end, not likely to change
|
|
_(result.stdout).must_include "inspec env SHELLNAME"
|
|
end
|
|
end
|
|
end
|
|
end |