Sha256: 4409cb1fa3f399221336da1a6bc9732c8ea9461766b73c3e5b14d0e415cc71e0
Contents?: true
Size: 507 Bytes
Versions: 4
Compression:
Stored size: 507 Bytes
Contents
Factory.define :localized_page, :class => Kuhsaft::LocalizedPage do |p| p.locale 'en' p.title 'English title' p.published 1 p.body 'hi' p.url '' p.association :page end Factory.define :page, :class => Kuhsaft::Page do |p| p.position 1 p.after_create do |page| page.localized_pages << Factory.create(:localized_page, :page => page) end end Factory.define :asset, :class => Kuhsaft::Asset do |a| a.file File.open("#{Kuhsaft::Engine.root}/spec/dummy/public/images/spec-image.png") end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
kuhsaft-0.1.1 | spec/factories.rb |
kuhsaft-0.1.0 | spec/factories.rb |
kuhsaft-0.0.8 | spec/factories.rb |
kuhsaft-0.0.7 | spec/factories.rb |