Sha256: a052ebb7c191104c95201a874065b3d2483341e5052e8ba7515f4ffb16da415c
Contents?: true
Size: 528 Bytes
Versions: 9
Compression:
Stored size: 528 Bytes
Contents
# encoding: utf-8 FactoryGirl.define do factory :structure_page, :class => Structure do |s| s.title 'Structure' s.slug { FactoryGirl.generate(:slug) } s.structure_type StructureType.page s.position_type PositionType.menu s.is_visible true end factory :structure_main, :class => Structure do |s| s.title "Main page" s.slug "main-page" s.structure_type StructureType.main s.position_type PositionType.default s.is_visible true end sequence :slug do |n| "slug#{n}" end end
Version data entries
9 entries across 9 versions & 1 rubygems