add comment factory

pull/1186/head
Philipp Tessenow 12 years ago
parent 35f8e7d476
commit 6bd9cf0f17
  1. 7
      spec/factories/comment_factory.rb

@ -0,0 +1,7 @@
FactoryGirl.define do
factory :comment do
author :factory => :user
sequence(:comments) { |n| "I am a comment No. #{n}" }
commented :factory => :valid_issue
end
end
Loading…
Cancel
Save