Class: RSpec::Core::ExampleGroup
- Inherits:
-
Object
- Object
- RSpec::Core::ExampleGroup
- Defined in:
- lib/inspec/rspec_extensions.rb
Instance Method Summary collapse
-
#attribute(name) ⇒ Object
This DSL method allows us to access the values of attributes within InSpec tests.
Methods included from Inspec::DescribeDslLazyLoader
Methods included from Inspec::TestDslLazyLoader
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Inspec::DescribeDslLazyLoader
Instance Method Details
#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 |