Fixed lint and added code comments

Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>
This commit is contained in:
Vasu1105 2021-03-24 15:19:45 +05:30
parent 9af59c2164
commit abde524470

View file

@ -41,10 +41,12 @@ module FilterTable
end end
def to_s def to_s
"#{@original_resource.to_s} (#{@original_exception.message})" "#{@original_resource} (#{@original_exception.message})"
end end
alias inspect to_s 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 def to_ary
[ to_s ] [ to_s ]
end end