Module: RSpec::Puppet::Matchers

Extended by:
Matchers::DSL
Included in:
ClassExampleGroup, DefineExampleGroup
Defined in:
lib/rspec-puppet/matchers/create_resource.rb,
lib/rspec-puppet/matchers/create_generic.rb,
lib/rspec-puppet/matchers/include_class.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



65
66
67
68
# File 'lib/rspec-puppet/matchers/create_generic.rb', line 65

def method_missing(method, *args, &block)
  return RSpec::Puppet::Matchers::CreateGeneric.new(method, *args, &block) if method.to_s =~ /^(create|contain)_/
  super
end