This commit is contained in:
Chris Blanchard 2015-08-20 15:58:10 +01:00
parent afa96bd2f5
commit f20d5294b9
2 changed files with 6 additions and 0 deletions

View file

@ -1,5 +1,10 @@
FactoryGirl.define do
factory :topic do
sequence(:title) { |n| "Forum Title #{n}" }
forum
user
before(:create) do |topic|
topic.first_post = "My first post on the topic"
end
end
end

View file

@ -19,6 +19,7 @@
# time_zone :string(255)
# version :integer
# public_email :boolean default(FALSE), not null
# salt :string(255)
#
require 'spec_helper'