Sha256: c54b077d61e046e1c7f1958222b24cfa64273d5eaf28d0c29efaa966a0028484

Contents?: true

Size: 537 Bytes

Versions: 2

Compression:

Stored size: 537 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|
end
Factory.define :check_box_field, :parent => :field, :class => Noodall::CheckBox do |field|
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
noodall-form-builder-0.3.2 spec/factories/field.rb
noodall-form-builder-0.3.1 spec/factories/field.rb