mirror of
https://github.com/inspec/inspec
synced 2024-11-23 13:13:22 +00:00
rubocop is on the beat
Signed-off-by: Miah Johnson <miah@chia-pet.org>
This commit is contained in:
parent
45070c15c0
commit
c993f91ca6
1 changed files with 2 additions and 2 deletions
|
@ -1,7 +1,7 @@
|
||||||
require "minitest/autorun"
|
require "minitest/autorun"
|
||||||
require "open3"
|
require "open3"
|
||||||
|
|
||||||
TEST_CLI_OPTS="--chef-license=accept-no-persist"
|
TEST_CLI_OPTS = "--chef-license=accept-no-persist".freeze
|
||||||
|
|
||||||
class ArtifactTest < Minitest::Test
|
class ArtifactTest < Minitest::Test
|
||||||
make_my_diffs_pretty!
|
make_my_diffs_pretty!
|
||||||
|
@ -10,7 +10,7 @@ class ArtifactTest < Minitest::Test
|
||||||
command = "inspec #{inspec_command} #{TEST_CLI_OPTS}"
|
command = "inspec #{inspec_command} #{TEST_CLI_OPTS}"
|
||||||
stdout, stderr, status = Open3.capture3({ "PATH" => ENV["PATH"] },
|
stdout, stderr, status = Open3.capture3({ "PATH" => ENV["PATH"] },
|
||||||
command,
|
command,
|
||||||
{ :chdir => ENV["project_root"]})
|
{ chdir: ENV["project_root"] })
|
||||||
|
|
||||||
assert_empty stderr.sub(/#< CLIXML\n/, "")
|
assert_empty stderr.sub(/#< CLIXML\n/, "")
|
||||||
assert stdout
|
assert stdout
|
||||||
|
|
Loading…
Reference in a new issue