Fixed 2 failing tests w/ missing empty hash waiver data.

Doesn't prove that data is being passed through when we have it.

Signed-off-by: Ryan Davis <zenspider@chef.io>
This commit is contained in:
Ryan Davis 2019-10-09 17:49:04 -07:00
parent f9ec3053aa
commit b03bc67bbb

View file

@ -95,7 +95,7 @@ module Inspec::Reporters
line: c[:source_location][:line],
ref: c[:source_location][:ref],
},
waiver_data: c[:waiver_data],
waiver_data: c[:waiver_data] || {},
results: profile_results(c),
}
}