jbodah / spy_rb

:mag: Transparent Test Spies for Ruby
28 stars 3 forks source link

allow for multiple chains of `when` and `instead` for spies #36

Open jbodah opened 8 years ago

jbodah commented 8 years ago

see https://github.com/jbodah/spy_rb/commit/c51d86d78f77e85d005184907bc62d622188ec35#diff-54fff610a17d610014b1df764d936cb3R54

jbodah commented 6 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

jbodah commented 5 years ago

In summary: