Sha256: 8f02ba9a31c1adc196abe9e4504dba358718255e6613f35bdcf4b38debccff23

Contents?: true

Size: 346 Bytes

Versions: 30

Compression:

Stored size: 346 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
  end
end

Version data entries

30 entries across 30 versions & 1 rubygems

Version Path
noodall-form-builder-0.2.11 spec/factories/form.rb
noodall-form-builder-0.3.2 spec/factories/form.rb
noodall-form-builder-0.3.1 spec/factories/form.rb
noodall-form-builder-0.3.0 spec/factories/form.rb
noodall-form-builder-0.2.10 spec/factories/form.rb
noodall-form-builder-0.2.9 spec/factories/form.rb
noodall-form-builder-0.2.8 spec/factories/form.rb
noodall-form-builder-0.2.7 spec/factories/form.rb
noodall-form-builder-0.2.5 spec/factories/form.rb
noodall-form-builder-0.2.4 spec/factories/form.rb
noodall-form-builder-0.2.3 spec/factories/form.rb
noodall-form-builder-0.2.2 spec/factories/form.rb
noodall-form-builder-0.2.1 spec/factories/form.rb
noodall-form-builder-0.2.0 spec/factories/form.rb
noodall-form-builder-0.1.3 spec/factories/form.rb
noodall-form-builder-0.1.2 spec/factories/form.rb
noodall-form-builder-0.1.1 spec/factories/form.rb
noodall-form-builder-0.1.0 spec/factories/form.rb
noodall-form-builder-0.0.13 spec/factories/form.rb
noodall-form-builder-0.0.11 spec/factories/form.rb