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:
= Copiar al portapapeles ¡Copiado!

instalar:
=

Versiones:

  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)

dependencias de Runtime (1):

neatjson ~> 0.6

dependencias de Development (3):

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

Propietarios:

Autores:

  • George Necula, Erik Krogen

SHA 256 checksum:

= Copiar al portapapeles ¡Copiado!

Total de descargas 7.895

Para esta versión 3.141

Licencia:

BSD-2-Clause-FreeBSD

Versión de Ruby requerida: >= 2.1

Enlace: