Class: Impersonator::Double

Inherits:
Object
  • Object
show all
Defined in:
lib/impersonator/double.rb

Overview

A simple double implementation. It will generate empty stubs for the passed list of methods

Instance Method Summary collapse

Constructor Details

#initialize(*methods) ⇒ Double

Returns a new instance of Double.

Parameters:

  • methods (Array<String, Symbol>)

    The list of methods this double will respond to



5
6
7
# File 'lib/impersonator/double.rb', line 5

def initialize(*methods)
  define_methods(methods)
end