mirror of
https://github.com/inspec/inspec
synced 2024-11-25 22:20:27 +00:00
Refactored unit test to be more like the other one.
Signed-off-by: Ryan Davis <zenspider@chef.io>
This commit is contained in:
parent
26ffea8d39
commit
f9ec3053aa
1 changed files with 5 additions and 1 deletions
|
@ -14,8 +14,12 @@ describe Inspec::Reporters::JsonAutomate do
|
|||
describe "#render" do
|
||||
it "confirms render output" do
|
||||
output = File.read(path + "/../mock/reporters/json_merged_output")
|
||||
output = JSON.parse(output, symbolize_names: true)
|
||||
report.render
|
||||
_(JSON.parse(report.rendered_output)).must_equal JSON.parse(output)
|
||||
|
||||
actual = JSON.parse(report.rendered_output, symbolize_names: true)
|
||||
|
||||
_(actual).must_equal output
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue