In a Rails application, given three models User, Article and Reviewer with the following relationships and validations:
class User < ActiveRecord::Base has_
The new syntax is:
before(:create) do |article| article.reviewers << FactoryGirl.build(:reviewer, article: article) end