0
0
Fork 0
mirror of https://github.com/ENSL/ensl.org.git synced 2025-02-17 17:41:05 +00:00
ensl.org/spec/factories/topic.rb
2015-08-22 10:48:08 +01:00

10 lines
212 B
Ruby

FactoryGirl.define do
factory :topic do
sequence(:title) { |n| "Topic Title #{n}" }
forum
user
before(:create) do |topic|
topic.first_post = "My first post on the topic"
end
end
end