Skip to content

grosser/method_call_recorder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ruby: Record methods calls and replay them later

Install

gem install method_call_recorder

Usage

recorder = MethodCallRecorder.new

# nothing happens
recorder.foo
recorder.bar :abc
recorder.baz :xyz do |blob|
  puts blob
end

puts recorder.recorded

# calls get made to subject
recorder.replay(subject)

TODO

  • make it possible to record #recorded or #replay by using recorder.proxy for recording which inheroits from e.g. BlankObject

Author

Michael Grosser
michael@grosser.it
License: MIT
Build Status

About

Ruby: Record methods calls and can replay them later

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages