Fwd: Riak, RSpec, and Ripple

Scott Gonyea 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
> 

> Hey,
> 
> 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
> end
> 
> How would I create a RSpec test for this that can employ a Riak database???
> 
> Thanks,
> Jesse L. Zamora
> _______________________________________________
> riak-users mailing list
> riak-users at lists.basho.com
> http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.basho.com/pipermail/riak-users_lists.basho.com/attachments/20110430/f74af903/attachment.html>


More information about the riak-users mailing list