Sha256: ad5bc2ed51d73ea23551a377f779ad075bfc511a8d14c41680cb050476fa90a9
Contents?: true
Size: 497 Bytes
Versions: 1
Compression:
Stored size: 497 Bytes
Contents
FactoryGirl.define do factory :element, class: Fe::Element do sequence :label do |n| "Label Element #{n}" end required true sequence :slug do |n| "element_#{n}" end factory :choice_field_element, class: Fe::ChoiceField do kind "Fe::ChoiceField" style "yes-no" content "Choice One\r\nChoice Two\r\nChoice Three" end factory :text_field_element, class: Fe::TextField do kind "Fe::TextField" style "short" end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
fe-0.0.4 | spec/factories/elements.rb |