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



19
20
21
22
# File 'lib/rspec-puppet/matchers/dynamic_matchers.rb', line 19

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