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 inputs within InSpec tests.
- #input_obj(name) ⇒ Object
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 inputs within InSpec tests
68 69 70 |
# File 'lib/inspec/rspec_extensions.rb', line 68 def attribute(name) Inspec::InputRegistry.find_or_register_input(name, self.class.[:profile_id]).value end |
#input_obj(name) ⇒ Object
72 73 74 |
# File 'lib/inspec/rspec_extensions.rb', line 72 def input_obj(name) Inspec::InputRegistry.find_or_register_input(name, self.class.[:profile_id]) end |