Sha256: 78db8c28c47b06632a498538efc4ec7d6cb556d67472fc0e3027f2f34c911a9b

Contents?: true

Size: 569 Bytes

Versions: 4

Compression:

Stored size: 569 Bytes

Contents

Factory.define :field, :class => Noodall::Field do |field|
  field.name {Faker::Lorem.words(2).join(' ')}
end


Factory.define :text_field, :parent => :field, :class => Noodall::TextField do |field|
end
Factory.define :select_field, :parent => :field, :class => Noodall::Select do |field|
  field.options "One,Two,Three"
  field.default "Two"
end
Factory.define :radio_field, :parent => :select_field, :class => Noodall::Radio do |field|
  field.options "One,Two,Three"
end
Factory.define :check_box_field, :parent => :field, :class => Noodall::CheckBox do |field|
end

Version data entries

4 entries across 4 versions & 1 rubygems

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