Sha256: efcaf0784113785051735f21906d610f3021d868b34bc28b63af1c9dcbd54c2d
Contents?: true
Size: 369 Bytes
Versions: 19
Compression:
Stored size: 369 Bytes
Contents
FactoryGirl.define do factory :reserve do |f| before(:create) do |reserve| profile = FactoryGirl.create(:profile) user = User.new(FactoryGirl.attributes_for(:user), as: :admin) user.profile = profile reserve.user = user end f.manifestation_id{FactoryGirl.create(:manifestation).id} # f.user{FactoryGirl.create(:user)} end end
Version data entries
19 entries across 19 versions & 1 rubygems