Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 2c39783413
Fetching contributors…

Cannot retrieve contributors at this time

24 lines (19 sloc) 0.477 kb
require 'factory_girl'
Factory.define(:tag) do |a|
a.name 'Tag'
end
Factory.define(: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.define(: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'
a.association :post
end
Jump to Line
Something went wrong with that request. Please try again.