Sha256: c8ea5c4f7b6f367ae4250acf07b77549ff8334c61a7729af6b9de1289a76bdcc
Contents?: true
Size: 781 Bytes
Versions: 4
Compression:
Stored size: 781 Bytes
Contents
FactoryGirl.define do factory :tag, :class => Enki::Tag do |a| a.name 'Tag' end factory :page, :class => Enki::Post do |a| a.title 'A page' a.slug 'a-page' a.body 'This is a page' a.published_at 1.day.ago a.created_at 1.day.ago a.updated_at 1.day.ago end factory :post, :class => Enki::Post do |a| a.title 'A post' a.slug 'a-post' a.body 'This is a post' a.published_at 1.day.ago a.created_at 1.day.ago a.updated_at 1.day.ago end factory :comment, :class => Enki::Comment do |a| a.author 'Don Alias' a.author_email 'enki@enkiblog.com' a.author_url 'http://enkiblog.com' a.body 'I find this article thought provoking' post end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
enki-engine-0.0.5 | spec/factories/factories.rb |
enki-engine-0.0.4 | spec/factories/factories.rb |
enki-engine-0.0.3 | spec/factories/factories.rb |
enki-engine-0.0.2 | spec/factories/factories.rb |