Module: RSpec::Puppet::FunctionMatchers

Included in:
FunctionExampleGroup
Defined in:
lib/rspec-puppet/matchers/dynamic_matchers.rb,
lib/rspec-puppet/matchers/run.rb

Defined Under Namespace

Classes: Run

Instance Method Summary collapse

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

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



21
22
23
24
25
# File 'lib/rspec-puppet/matchers/dynamic_matchers.rb', line 21

def method_missing(method, *args, &block)
  return RSpec::Puppet::FunctionMatchers::Run.new if method == :run

  super
end