Module: GameboxAcceptanceSpecHelpers::MockCalls

Defined in:
lib/gamebox/spec/helper.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(*args) ⇒ Object



273
274
275
# File 'lib/gamebox/spec/helper.rb', line 273

def method_missing(*args)
  @calls << args
end

Instance Attribute Details

#callsObject

Returns the value of attribute calls.



272
273
274
# File 'lib/gamebox/spec/helper.rb', line 272

def calls
  @calls
end

Instance Method Details

#_reset!Object



277
278
279
# File 'lib/gamebox/spec/helper.rb', line 277

def _reset!
  @calls = []
end