Fwd: Riak, RSpec, and Ripple
scott at aitrus.org
Sat Apr 30 16:34:40 EDT 2011
You have me curious about the FactoryGirl Q; I don't know how factory girl works under the covers, but it should be a simple extension if it doesn't work out of the box.
Sent from my iPhone
Begin forwarded message:
> From: Jesse Zamora <xtremekforever at gmail.com>
> Date: April 30, 2011 11:45:52 AM PDT
> To: riak-users at lists.basho.com
> Subject: Riak, RSpec, and Ripple
> I've been working on figuring out how to create tests for my Riak database using RSpec and Ripple. Unfortunately, I haven't been able to find documentation or even a tiny tutorial on it. Does anyone have any tips on how to create RSpec tests that use Ripple? I want to use Factory Girl too, but as they say, one step at a time.
> So anyway, say I have a class User like so:
> class User
> include Ripple::Document
> property :name, String, :presence => true
> property :email, String, :presence => true
> # and more fields here, whatever is needed
> How would I create a RSpec test for this that can employ a Riak database???
> Jesse L. Zamora
> riak-users mailing list
> riak-users at lists.basho.com
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the riak-users