On Sat, Oct 3, 2009 at 6:21 PM, James Adam <
ja...@lazyatom.com> wrote:
>
> Factory.define(:user) do |user|
> end
>
> Factory.define(:review) do |review|
> review.association :user
> end
>
> Factory.define(:activity) do |activity|
> activity.association :user #
> this user
> activity.association :review, :user => activity.user # should be
> the same as this user
> end
>
> Basically, we have a Review, written by a User, and then an Activity
> record which belongs to a User and a Review, and the User should be
> the same user as belongs to the Review.