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.2.11 spec/factories/field.rb
noodall-form-builder-0.3.0 spec/factories/field.rb
noodall-form-builder-0.2.10 spec/factories/field.rb
noodall-form-builder-0.2.9 spec/factories/field.rb
noodall-form-builder-0.2.8 spec/factories/field.rb
noodall-form-builder-0.2.7 spec/factories/field.rb
noodall-form-builder-0.2.5 spec/factories/field.rb
noodall-form-builder-0.2.4 spec/factories/field.rb
noodall-form-builder-0.2.3 spec/factories/field.rb
noodall-form-builder-0.2.2 spec/factories/field.rb
noodall-form-builder-0.2.1 spec/factories/field.rb
noodall-form-builder-0.2.0 spec/factories/field.rb
noodall-form-builder-0.1.3 spec/factories/field.rb
noodall-form-builder-0.1.2 spec/factories/field.rb
noodall-form-builder-0.1.1 spec/factories/field.rb
noodall-form-builder-0.1.0 spec/factories/field.rb
noodall-form-builder-0.0.13 spec/factories/field.rb
noodall-form-builder-0.0.11 spec/factories/field.rb
noodall-form-builder-0.0.10 spec/factories/field.rb
noodall-form-builder-0.0.9 spec/factories/field.rb