Open jbodah opened 8 years ago
We can do this by returning builder proxies and storing those. They can chain and delegate back to the parent Spy object as needed
In summary:
Spy.on
will yield a new branch; branches are mutable and independent so that you can have multiple branches
see https://github.com/jbodah/spy_rb/commit/c51d86d78f77e85d005184907bc62d622188ec35#diff-54fff610a17d610014b1df764d936cb3R54