Project

stubble

0.0
No commit activity in last 3 years
No release in over 3 years
(experimental) simple stubbing
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
 Dependencies
 Project Readme
Stubble
========

Work towards a Ruby stubber that retains the original functionality under the hood.

Example
=======

Add some stubble
  Stubble.add_stubble!(Time)

Tell it just to track a method
  Time.track!(:now)

We can then later assert against calls

Or we can stub it

  Time.stub!(:now, [Time.mktime(2010,12,17,10,40)])
  
After Time.now has been called once, the functionality will return to normal

Or we can call

  Time.unstub!(:now)

Copyright (c) 2010 [Matthew Rudy Jacobs], released under the MIT license