Created
November 8, 2012 20:02
-
-
Save stevencwarren/4041171 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FactoryGirl.define do | |
factory :resource do | |
title 'Resrouce Test' | |
author_name 'George Costanza' | |
author_bio 'Once upon some time...' | |
text 'Donec gravida posuere arcu. Nulla facilisi. Phasellus imperdiet. Vestibulum at metus. Integer euismod. Nullam placerat rhoncus sapien. Ut euismod. Praesent libero. Morbi pellentesque libero sit amet ante. Maecenas tellus. Maecenas erat. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas.' | |
published_at Date.today | |
user | |
end | |
Factory.define :article, :parent => :resource, :class => 'Article' do |f| | |
end | |
Factory.define :ebsco_article, :parent => :resource, :class => 'EbscoArticle' do |f| | |
f.external_id '1234567890' | |
end | |
Factory.define :expert_opinion,:parent => :resource, :class => 'ExpertOpinion' do |f| | |
f.title 'Expert Opinion Test' | |
f.author_title 'President' | |
f.author_employer 'The Human Fund' | |
f.teaser 'Test Teaser. Donec gravida posuere arcu. Nulla facilisi.' | |
end | |
Factory.define :interview,:parent => :resource, :class => 'Interview' do |f| | |
f.interviewer 'Mr. Kruger' | |
end | |
Factory.define :white_paper,:parent => :resource, :class => 'WhitePaper' do |f| | |
f.author_title 'President' | |
f.author_employer 'The Human Fund' | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment