mirror of
https://github.com/ENSL/ensl.org.git
synced 2024-11-15 01:11:23 +00:00
10 lines
212 B
Ruby
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
|