Module: RSpec::Puppet

Defined in:
lib/rspec-puppet/matchers/unique_values.rb,
lib/rspec-puppet/matchers/create_generic.rb,
lib/rspec-puppet/matchers/dynamic_matchers.rb,
lib/rspec-puppet/example/host_example_group.rb,
lib/rspec-puppet/example/type_example_group.rb,
lib/rspec-puppet/matchers/parameter_matcher.rb,
lib/rspec-puppet/example/class_example_group.rb,
lib/rspec-puppet/example/define_example_group.rb,
lib/rspec-puppet/monkey_patches/win32/registry.rb,
lib/rspec-puppet/example/function_example_group.rb,
lib/rspec-puppet/example/provider_example_group.rb,
lib/rspec-puppet/example/type_alias_example_group.rb,
lib/rspec-puppet/example/application_example_group.rb,
lib/rspec-puppet/monkey_patches/win32/taskscheduler.rb,
lib/rspec-puppet/monkey_patches/windows/taskschedulerconstants.rb,
lib/rspec-puppet/matchers/type_matchers.rb,
lib/rspec-puppet/matchers/include_class.rb,
lib/rspec-puppet/matchers/count_generic.rb,
lib/rspec-puppet/matchers/raise_error.rb,
lib/rspec-puppet/matchers/allow_value.rb,
lib/rspec-puppet/matchers/compile.rb,
lib/rspec-puppet/matchers/run.rb,
lib/rspec-puppet/raw_string.rb,
lib/rspec-puppet/sensitive.rb,
lib/rspec-puppet/coverage.rb,
lib/rspec-puppet/adapters.rb,
lib/rspec-puppet/support.rb,
lib/rspec-puppet/errors.rb,
lib/rspec-puppet/setup.rb,
lib/rspec-puppet/cache.rb,
lib/rspec-puppet.rb

Defined Under Namespace

Modules: Adapters, ApplicationExampleGroup, ClassExampleGroup, Consts, DefineExampleGroup, Errors, FunctionExampleGroup, FunctionMatchers, GenericMatchers, HostExampleGroup, ManifestMatchers, ProviderExampleGroup, Support, TypeAliasExampleGroup, TypeAliasMatchers, TypeExampleGroup, TypeMatchers, Win32, Windows Classes: Cache, Coverage, EventListener, RawString, Sensitive, Setup

Class Method Summary collapse

Class Method Details

.current_exampleObject


27
28
29
# File 'lib/rspec-puppet.rb', line 27

def self.current_example
  RSpec::Puppet::EventListener.current_example
end

.rspec_puppet_example?Boolean

Returns:

  • (Boolean)

23
24
25
# File 'lib/rspec-puppet.rb', line 23

def self.rspec_puppet_example?
  RSpec::Puppet::EventListener.rspec_puppet_example?
end