Sha256: 848cc58b11a098626d6edf0eae0328fc54a9f852b6fc5e4164f8d7a43cb0f626

Contents?: true

Size: 534 Bytes

Versions: 28

Compression:

Stored size: 534 Bytes

Contents

Factory.define :field, :class => Noodall::Field do |field|
  field.name {Faker::Lorem.words(1).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

28 entries across 28 versions & 1 rubygems

Version Path
noodall-form-builder-0.0.8 spec/factories/field.rb
noodall-form-builder-0.0.7 spec/factories/field.rb
noodall-form-builder-0.0.6 spec/factories/field.rb
noodall-form-builder-0.0.5 spec/factories/field.rb
noodall-form-builder-0.0.4 spec/factories/field.rb
noodall-form-builder-0.0.3 spec/factories/field.rb
noodall-form-builder-0.0.2 spec/factories/field.rb
noodall-form-builder-0.0.1 spec/factories/field.rb