Method: RSpec::Core::ExampleGroup#attribute

Defined in:
lib/inspec/rspec_extensions.rb

#attribute(name) ⇒ Object

This DSL method allows us to access the values of attributes within InSpec tests



8
9
10
# File 'lib/inspec/rspec_extensions.rb', line 8

def attribute(name)
  Inspec::AttributeRegistry.find_attribute(name, self.class.[:profile_id]).value
end