Sha256: 053d6ba48f34497b70d721dccc7266b14169a828783f18596e234814a44abdf4

Contents?: true

Size: 194 Bytes

Versions: 41

Compression:

Stored size: 194 Bytes

Contents

FactoryGirl.define do
  factory :answer do |f|
    f.sequence(:body){|n| "answer_#{n}"}
    f.question_id{FactoryGirl.create(:question).id}
    f.user_id{FactoryGirl.create(:user).id}
  end
end

Version data entries

41 entries across 41 versions & 1 rubygems

Version Path
enju_question-0.2.0 spec/factories/answer.rb
enju_question-0.2.0.beta.4 spec/factories/answer.rb
enju_question-0.2.0.beta.3 spec/factories/answer.rb
enju_question-0.2.0.beta.2 spec/factories/answer.rb
enju_question-0.2.0.beta.1 spec/factories/answer.rb
enju_question-0.1.1 spec/factories/answer.rb
enju_question-0.1.0 spec/factories/answer.rb
enju_question-0.1.0.pre15 spec/factories/answer.rb
enju_question-0.1.0.pre14 spec/factories/answer.rb
enju_question-0.1.0.pre13 spec/factories/answer.rb
enju_question-0.1.0.pre12 spec/factories/answer.rb
enju_question-0.1.0.pre11 spec/factories/answer.rb
enju_question-0.1.0.pre10 spec/factories/answer.rb
enju_question-0.1.0.pre9 spec/factories/answer.rb
enju_question-0.1.0.pre8 spec/factories/answer.rb
enju_question-0.1.0.pre7 spec/factories/answer.rb
enju_question-0.1.0.pre6 spec/factories/answer.rb
enju_question-0.1.0.pre5 spec/factories/answer.rb
enju_question-0.1.0.pre4 spec/factories/answer.rb
enju_question-0.1.0.pre3 spec/factories/answer.rb