mirror of
https://github.com/inspec/inspec
synced 2024-11-27 07:00:39 +00:00
Refactored and cleaned a minor bit in runner.rb
Signed-off-by: Ryan Davis <zenspider@chef.io>
This commit is contained in:
parent
7de549577c
commit
9f91b53193
2 changed files with 2 additions and 2 deletions
|
@ -165,7 +165,7 @@ module Inspec::Resources
|
|||
end
|
||||
|
||||
def to_s
|
||||
if file then
|
||||
if file
|
||||
"File #{source_path}"
|
||||
else
|
||||
"Bad File on %s" % [inspec.backend.class]
|
||||
|
|
|
@ -255,7 +255,7 @@ module Inspec
|
|||
|
||||
resource = arg[0]
|
||||
# check to see if we are using a filtertable object
|
||||
resource = arg[0].resource if arg[0].class.superclass == FilterTable::Table
|
||||
resource = resource.resource if resource.is_a? FilterTable::Table
|
||||
if resource.respond_to?(:resource_skipped?) && resource.resource_skipped?
|
||||
return rspec_skipped_block(arg, opts, resource.resource_exception_message)
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue