From 047b753a9eca8d44bc6fb63c366f4d581000dd7d Mon Sep 17 00:00:00 2001 From: Imran Iqbal Date: Sun, 27 Oct 2019 00:02:33 +0100 Subject: [PATCH] test(inspec): fix `config_spec` tests on *BSD (`wheel` not `root`) --- test/integration/default/controls/config_spec.rb | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/test/integration/default/controls/config_spec.rb b/test/integration/default/controls/config_spec.rb index 80f038e..85457ab 100644 --- a/test/integration/default/controls/config_spec.rb +++ b/test/integration/default/controls/config_spec.rb @@ -1,8 +1,11 @@ # Overide by Platform -root_group = 'root' -if platform[:family] == 'freebsd' - root_group = 'wheel' -end +root_group = + case platform[:family] + when 'bsd' + 'wheel' + else + 'root' + end control 'openssh configuration' do title 'should match desired lines'