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
68 69 70 |
# File 'lib/inspec/rspec_extensions.rb', line 68 def attribute(name) Inspec::AttributeRegistry.find_attribute(name, self.class.[:profile_id]).value end |