Skip to content

Instantly share code, notes, and snippets.

@fables-tales
Forked from nelstrom/spies.md
Last active August 29, 2015 14:24
Show Gist options
  • Save fables-tales/6203900083831412a61b to your computer and use it in GitHub Desktop.
Save fables-tales/6203900083831412a61b to your computer and use it in GitHub Desktop.

Write a simple library to enable testing with spies.

Here's a simple Ruby app which interacts with a RESTful API. The app has a passing test suite, but the tests are an incomplete specification of its behaviour. Add a set of isolated tests that spy on collaborations between objects to complete the test suite.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment