Module: RSpec::Puppet::TypeMatchers

Included in:
TypeExampleGroup
Defined in:
lib/rspec-puppet/matchers/dynamic_matchers.rb,
lib/rspec-puppet/matchers/type_matchers.rb

Defined Under Namespace

Classes: CreateGeneric

Instance Method Summary collapse

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(method, *args, &block) ⇒ Object



29
30
31
32
33
# File 'lib/rspec-puppet/matchers/dynamic_matchers.rb', line 29

def method_missing(method, *args, &block)
  return RSpec::Puppet::TypeMatchers::CreateGeneric.new(method, *args, &block) if method == :be_valid_type

  super
end