Sha256: 2e9532e3a9f70efbf9fcde0a4fe5771c8066eb3d4d8123127f3ca3168bc1d315

Contents?: true

Size: 499 Bytes

Versions: 4

Compression:

Stored size: 499 Bytes

Contents

Factory.define :form, :class => Noodall::Form do |form|
  form.title "A Form"
  form.email "hello@wearebeef.co.uk"

  form.fields do
    fields = [Factory(:text_field, :name => 'Name', :required => true), Factory(:text_field, :name => 'Email', :required => true)]
    5.times do
      fields << Factory(:text_field)
    end
    fields << Factory(:check_box_field)
    fields << Factory(:select_field)
    fields << Factory(:check_box_field)
    fields << Factory(:radio_field)

    fields
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
noodall-form-builder-0.4.2 spec/factories/form.rb
noodall-form-builder-0.4.1 spec/factories/form.rb
noodall-form-builder-0.4.0 spec/factories/form.rb
noodall-form-builder-0.3.3 spec/factories/form.rb