Monday, October 1, 2012

Custom RSpec matchers for testing your Ripple Documents

We're currently using Ripple for modeling our objects in Riak. Since we are test first, we needed some matchers to help make specifying our Ripple::Documents easier.

(As a side note, we are also developing a gem to wrap RiakSearch functionality. The gem is called Ripplr and has been pushed to ruby gems.)

These matchers were created by extracting specifications from within Ripple's test suite.

**Note: Matchers updated on 10-17-2012 to support embedded docs and added failure messages

No comments:

Post a Comment