Sha256: 3dff31d0f1cee57b2d2b63cf3c3900149deb1e2fcd8511791366578c23bb8441

Contents?: true

Size: 660 Bytes

Versions: 4

Compression:

Stored size: 660 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
Factory.define :date_field, :parent => :field, :class => Noodall::DateField do |field|
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
noodall-form-builder-0.5.4 spec/factories/field.rb
noodall-form-builder-0.5.3 spec/factories/field.rb
noodall-form-builder-0.5.2 spec/factories/field.rb
noodall-form-builder-0.5.0 spec/factories/field.rb