aboutsummaryrefslogtreecommitdiffstats
path: root/features/support/factories/blog_posts.rb
diff options
context:
space:
mode:
authorJoe Sak <joe@joesak.com>2011-04-22 15:59:24 -0500
committerJoe Sak <joe@joesak.com>2011-04-22 16:05:08 -0500
commit7746f86dbf9bfe3c8cf2eaad88d9d87858e11dbe (patch)
treea57b4a8ba3e4d62bfbb5b5b2e85c871227519606 /features/support/factories/blog_posts.rb
parentfe3bb08fcf7455bf446734e380e68bfc410886c3 (diff)
downloadrefinerycms-blog-7746f86dbf9bfe3c8cf2eaad88d9d87858e11dbe.tar.gz
refinerycms-blog-7746f86dbf9bfe3c8cf2eaad88d9d87858e11dbe.tar.bz2
refinerycms-blog-7746f86dbf9bfe3c8cf2eaad88d9d87858e11dbe.zip
have to explicitly require factory girl
Diffstat (limited to 'features/support/factories/blog_posts.rb')
-rw-r--r--features/support/factories/blog_posts.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/features/support/factories/blog_posts.rb b/features/support/factories/blog_posts.rb
index 3eecf53..33f6b93 100644
--- a/features/support/factories/blog_posts.rb
+++ b/features/support/factories/blog_posts.rb
@@ -1,3 +1,5 @@
+require 'factory_girl'
+
Factory.define(:post, :class => BlogPost) do |f|
f.sequence(:title) { |n| "Top #{n} Shopping Centers in Chicago" }
f.body "These are the top ten shopping centers in Chicago. You're going to read a long blog post about them. Come to peace with it."