ensl.org/spec/factories/post.rb

8 lines
115 B
Ruby
Raw Permalink Normal View History

2015-08-20 14:57:29 +00:00
FactoryGirl.define do
factory :post do
sequence(:text) { |n| "Post Body #{n}" }
topic
user
end
2015-08-20 15:35:25 +00:00
end