Sha256: 33f2b3a555cc3ce7f64b683e91ab212dcff9382114b1ca3395602d41240655dd

Contents?: true

Size: 545 Bytes

Versions: 16

Compression:

Stored size: 545 Bytes

Contents

Factory.define :answer do |answer|
  answer.association :question
  answer.association :user
  answer.data        'Factory Answer'
end

Factory.define :choice do |choice|
  choice.association  :question
  choice.value        'Factory Choice'
end

Factory.define :data_group do |group|
  group.name 'Factory Data Group'
end

Factory.define :question do |question|
  question.association  :data_group
  question.prompt       'Enter your response'
  question.multiple     false
  question.other        false
end

Factory.define :user do |user|
end

Version data entries

16 entries across 8 versions & 1 rubygems

Version Path
census-0.4.2 test/rails_root/test/factories/census.rb
census-0.4.2 generators/census/templates/factories.rb
census-0.4.1 test/rails_root/test/factories/census.rb
census-0.4.1 generators/census/templates/factories.rb
census-0.4.0 generators/census/templates/factories.rb
census-0.4.0 test/rails_root/test/factories/census.rb
census-0.3.1 generators/census/templates/factories.rb
census-0.3.1 test/rails_root/test/factories/census.rb
census-0.3.0 generators/census/templates/factories.rb
census-0.3.0 test/rails_root/test/factories/census.rb
census-0.2.1 generators/census/templates/factories.rb
census-0.2.1 test/rails_root/test/factories/census.rb
census-0.2.0 test/rails_root/test/factories/census.rb
census-0.2.0 generators/census/templates/factories.rb
census-0.1.0 generators/census/templates/factories.rb
census-0.1.0 test/rails_root/test/factories/census.rb