RubyGems Navigation menu

bond-spy 0.2.1

Bond is a small library that can be used to spy values and mock functions during tests. Spying is a replacement for writing the assertEquals in your test, which are tedious to write and even more tedious to update when your test setup or code inevitably changes. With Bond, you separate what is being verified, e.g., the variable named output, from what value it should have. This way you can quickly spy several variables, even have structured values such as lists or dictionaries, and these values are saved into an observation log that is saved for future reference. If the test observations are different you have the option to interact with a console or visual tool to see what has changed, and whether the reference set of observations need to be updated.

Gemfile:
= Copy to clipboard Copied!

install:
=

Versions:

  1. 0.2.1 - February 18, 2016 (32 KB)
  2. 0.2.0 - February 04, 2016 (31 KB)
  3. 0.1.0 - January 29, 2016 (29 KB)

Runtime Dependencies (1):

neatjson ~> 0.6

Development Dependencies (3):

bundler ~> 1.10
rake ~> 10.0
rspec ~> 3.0

Owners:

Authors:

  • George Necula, Erik Krogen

SHA 256 checksum:

5541cd26fc32431c574e352a526bb49961ca51bccdbe8bc58519a962bc77aea9

Total downloads 7,757

For this version 3,080

License:

BSD-2-Clause-FreeBSD

Required Ruby Version: >= 2.1

Links: