Sha256: 8886e8ca5abb5b390fa6cc9ef837fecffb601606e887cfe47a17d6f61b68ac39
Contents?: true
Size: 670 Bytes
Versions: 109
Compression:
Stored size: 670 Bytes
Contents
FactoryGirl.define do factory :mdm_web_form, :aliases => [:web_form], :class => Mdm::WebForm do # # Associations # association :web_site, :factory => :mdm_web_site trait :exported do add_attribute(:method) { generate :mdm_web_form_method } params { generate :mdm_web_form_params } path { generate :mdm_web_form_path } end end methods = ['GET', 'POST'] sequence :mdm_web_form_method do |n| methods[n % methods.length] end sequence :mdm_web_form_params do |n| [ [ "name#{n}", "value#{n}" ] ] end sequence :mdm_web_form_path do |n| "path/to/web/form/#{n}" end end
Version data entries
109 entries across 109 versions & 1 rubygems