Class: RSpec::Core::ExampleGroup

Inherits:
Object
  • Object
show all
Includes:
Inspec::DescribeDslLazyLoader, Inspec::TestDslLazyLoader
Defined in:
lib/inspec/rspec_extensions.rb

Instance Method Summary collapse

Methods included from Inspec::DescribeDslLazyLoader

#method_missing

Methods included from Inspec::TestDslLazyLoader

#method_missing

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