mirror of
https://github.com/inspec/inspec
synced 2024-11-27 07:00:39 +00:00
Fixed lint and added code comments
Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>
This commit is contained in:
parent
9af59c2164
commit
abde524470
1 changed files with 3 additions and 1 deletions
|
@ -41,10 +41,12 @@ module FilterTable
|
|||
end
|
||||
|
||||
def to_s
|
||||
"#{@original_resource.to_s} (#{@original_exception.message})"
|
||||
"#{@original_resource} (#{@original_exception.message})"
|
||||
end
|
||||
alias inspect to_s
|
||||
|
||||
# Rspec is not able to convert FilterTable::ExceptionCatcher issue https://github.com/inspec/inspec/issues/5369
|
||||
# which result into not showing actual exception message this allows to convert it properly.
|
||||
def to_ary
|
||||
[ to_s ]
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue