Class: Mocks::Observer

Inherits:
Mock show all
Defined in:
lib/mocks/observer.rb

Instance Attribute Summary

Attributes inherited from Mock

#mock_calls

Instance Method Summary collapse

Methods inherited from Mock

#initialize, #mock_add, #mock_args, #mock_calls_array, #mock_clear, #mock_freeze, #mock_recall, #mock_size

Methods included from Abstract

included

Constructor Details

This class inherits a constructor from Mocks::Mock

Instance Method Details

#update(*args, &block) ⇒ Object



11
12
13
# File 'lib/mocks/observer.rb', line 11

def update ( *args, &block )
  mock_add MethodCall.new(:update, *args, &block)
end