From 1c99556695a633c706d852dd20cfcc25397eba35 Mon Sep 17 00:00:00 2001 From: Daniel Dehennin Date: Wed, 26 Aug 2020 10:06:13 +0200 Subject: [PATCH] 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. --- test/integration/default/controls/_mapdata_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/integration/default/controls/_mapdata_spec.rb b/test/integration/default/controls/_mapdata_spec.rb index 67760c5..fccc087 100644 --- a/test/integration/default/controls/_mapdata_spec.rb +++ b/test/integration/default/controls/_mapdata_spec.rb @@ -13,6 +13,6 @@ control '`map.jinja` YAML dump' do 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