rubocop is on the beat

Signed-off-by: Miah Johnson <miah@chia-pet.org>
This commit is contained in:
Miah Johnson 2019-11-22 12:48:56 -08:00
parent 45070c15c0
commit c993f91ca6

View file

@ -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