module RSpec::Puppet::Augeas::RunAugeasExampleGroup::InstanceMethods
Public Instance Methods
output_root()
click to toggle source
# File lib/rspec-puppet-augeas/example/run_augeas_example_group.rb, line 72 def output_root subject.root end
resource()
click to toggle source
Requires that the title of this example group is the resource title and that the parent example group subject is a catalog (use rspec-puppet)
# File lib/rspec-puppet-augeas/example/run_augeas_example_group.rb, line 57 def resource unless @resource title = self.class.description title = $1 if title =~ /^Augeas\[(.*)\]$/ @resource = catalogue.resource('Augeas', title) end @resource end
subject()
click to toggle source
Initialises the implicit example group ‘subject’ to a wrapped Augeas
resource
# File lib/rspec-puppet-augeas/example/run_augeas_example_group.rb, line 68 def subject @subject ||= Resource.new(self.resource, fixture) end