Categories: None [Edit]

bond-spy

https://rubygems.org/gems/bond-spy
https://github.com/necula01/bond
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.

Total

Ranking: 95,121 of 188,252
Downloads: 8,664

Daily

Ranking: 47,089 of 188,232
Downloads: 4

Depended by

RankDownloadsName

Depends on

RankDownloadsName
13,079,967,256bundler
101,188,890,086rake
29935,425,343rspec
2,6986,512,800neatjson

Owners

#GravatarHandle
1iconxkrogen