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/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/facter_impl.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, ClassExampleGroup, Consts, DefineExampleGroup, Errors, FunctionExampleGroup, FunctionMatchers, GenericMatchers, HostExampleGroup, ManifestMatchers, ProviderExampleGroup, Support, TypeAliasExampleGroup, TypeAliasMatchers, TypeExampleGroup, TypeMatchers, Win32, Windows Classes: Cache, Coverage, EventListener, FacterTestImpl, RawString, Sensitive, Setup

Class Method Summary collapse

Class Method Details

.current_exampleObject



29
30
31
# File 'lib/rspec-puppet.rb', line 29

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

.rspec_puppet_example?Boolean

Returns:

  • (Boolean)


25
26
27
# File 'lib/rspec-puppet.rb', line 25

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