Class: RSpec::Core::ExampleGroup
- Inherits:
-
Object
- Object
- RSpec::Core::ExampleGroup
- Defined in:
- lib/inspec/rspec_extensions.rb
Overview
This file allows you to add ExampleGroups to be used in rspec tests
Instance Method Summary collapse
-
#attribute(name) ⇒ Object
This DSL method allows us to access the values of attributes within InSpec tests.
Instance Method Details
#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 |