Skip to content

Commit

Permalink
test(inspec): display proper diff when _mapdata mismatch
Browse files Browse the repository at this point in the history
The use of `eq` instead of `include` premits to have a nice diff after
the `expected/got` oneliners.
  • Loading branch information
baby-gnu committed Aug 26, 2020
1 parent 34a9c8f commit 1c99556
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/integration/default/controls/_mapdata_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@

describe file('/tmp/salt_mapdata_dump.yaml') do
it { should exist }
its('content') { should include mapdata_dump }
its('content') { should eq mapdata_dump }
end
end

0 comments on commit 1c99556

Please sign in to comment.