Fix tests to use only plan file

Signed-off-by: John Snow <thelunaticscripter@outlook.com>
This commit is contained in:
John Snow 2019-07-22 07:35:33 -04:00
parent bbb809f703
commit ea7956177a

View file

@ -25,12 +25,7 @@ class ProfileCli < Minitest::Test
# Command creates only expected files
base_dir = File.join(@tmpdir, "habitat-profile", "habitat")
files = %w{
default.toml
plan.sh
config
config/inspec_exec_config.json
hooks
hooks/run
}
actual_files = Dir.glob(File.join(base_dir, "**/*"))
expected_files = files.map { |x| File.join(base_dir, x) }