Class: ResourceInspector

Inherits:
RSpec::Support::ObjectFormatter::BaseInspector
  • Object
show all
Defined in:
lib/inspec/rspec_extensions.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.can_inspect?(object) ⇒ Boolean

Returns:

  • (Boolean)


119
120
121
# File 'lib/inspec/rspec_extensions.rb', line 119

def self.can_inspect?(object)
  Inspec::Resource === object
end

Instance Method Details

#inspectObject

do NOT use default inspect in rspec w/ resources



123
124
125
# File 'lib/inspec/rspec_extensions.rb', line 123

def inspect # do NOT use default inspect in rspec w/ resources
  object.to_s
end