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:
= 复制到剪贴板 已复制!

安装:
=

版本列表:

  1. 0.2.1 - February 18, 2016 (32.0 KB)
  2. 0.2.0 - February 04, 2016 (31.0 KB)
  3. 0.1.0 - January 29, 2016 (29.0 KB)

Runtime 依赖 (1):

neatjson ~> 0.6

Development 依赖 (3):

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

业主:

作者:

  • George Necula, Erik Krogen

SHA 256 校验和:

5541cd26fc32431c574e352a526bb49961ca51bccdbe8bc58519a962bc77aea9

下载总量 7,881

这个版本 3,136

许可:

BSD-2-Clause-FreeBSD

需要的 Ruby 版本: >= 2.1

链接: