Skip to content

Commit 1c99556

Browse files
committed
test(inspec): display proper diff when _mapdata mismatch
The use of `eq` instead of `include` premits to have a nice diff after the `expected/got` oneliners.
1 parent 34a9c8f commit 1c99556

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/integration/default/controls/_mapdata_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,6 @@
1313

1414
describe file('/tmp/salt_mapdata_dump.yaml') do
1515
it { should exist }
16-
its('content') { should include mapdata_dump }
16+
its('content') { should eq mapdata_dump }
1717
end
1818
end

0 commit comments

Comments
 (0)