update tests based on resource changes

This commit is contained in:
Alex Pop 2016-03-24 19:50:29 +00:00 committed by Dominik Richter
parent 825702014c
commit 53c7683ff7
3 changed files with 4 additions and 4 deletions

View file

@ -32,8 +32,8 @@ class GordonConfig < Inspec.resource(1)
# Extra Ruby helper method
def add_some_extra_params
@params['size']=@file.size
@params['md5sum']=@file.md5sum
@params['size'] = @file.size
@params['md5sum'] = @file.md5sum
end
# Expose all parameters

BIN
profile.tar.gz Normal file

Binary file not shown.

View file

@ -284,7 +284,7 @@ describe 'Inspec::InspecCLI' do
"license" => "Apache 2 license",
"summary" => "Demonstrates the use of InSpec Compliance Profile",
"version" => "1.0.0",
"supports" => [{"os-family" => "linux"}]
"supports" => [{"os-family" => "unix"}]
})
end
@ -340,7 +340,7 @@ describe 'Inspec::InspecCLI' do
it 'pending message in json' do
ex1['pending'].must_be :nil?
ex3['pending'].must_equal "Can't find file \"/etc/gordon/config.yaml\""
ex3['pending'].must_equal "Can't find file \"/tmp/gordon/config.yaml\""
end
end
end