diff options
Diffstat (limited to 'spec/factories/blog_categories.rb')
-rw-r--r-- | spec/factories/blog_categories.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/spec/factories/blog_categories.rb b/spec/factories/blog_categories.rb new file mode 100644 index 0000000..590e5b5 --- /dev/null +++ b/spec/factories/blog_categories.rb @@ -0,0 +1,4 @@ +Factory.define(:blog_category) do |f| + f.title "Shopping" + f.posts {|p| [p.association :post]} +end
\ No newline at end of file |