## Site ## Factory.define :site do |s| s.name 'Acme Website' s.subdomain 'acme' s.created_at Time.now end # Accounts ## Factory.define :account do |a| a.name 'Bart Simpson' a.email 'bart@simpson.net' a.password 'easyone' a.password_confirmation 'easyone' a.locale 'en' end ## Memberships ## Factory.define :membership do |m| m.association :account, :factory => :account m.admin true end ## Pages ## Factory.define :page do |p| p.association :site, :factory => :site p.title 'Home page' p.slug 'index' end ## Liquid templates ## Factory.define :liquid_template do |t| t.association :site, :factory => :site t.name 'Simple one' t.slug 'simple_one' t.value %{simple liquid template} end ## Layouts ## Factory.define :layout do |l| l.association :site, :factory => :site l.name '1 main column + sidebar' l.value %{