mirror of
https://github.com/ENSL/ensl.org.git
synced 2024-11-15 09:21:25 +00:00
Fix
This commit is contained in:
parent
d3a2b172e5
commit
843da0db43
2 changed files with 6 additions and 0 deletions
|
@ -1,5 +1,10 @@
|
||||||
FactoryGirl.define do
|
FactoryGirl.define do
|
||||||
factory :topic do
|
factory :topic do
|
||||||
sequence(:title) { |n| "Forum Title #{n}" }
|
sequence(:title) { |n| "Forum Title #{n}" }
|
||||||
|
forum
|
||||||
|
user
|
||||||
|
before(:create) do |topic|
|
||||||
|
topic.first_post = "My first post on the topic"
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
|
@ -19,6 +19,7 @@
|
||||||
# time_zone :string(255)
|
# time_zone :string(255)
|
||||||
# version :integer
|
# version :integer
|
||||||
# public_email :boolean default(FALSE), not null
|
# public_email :boolean default(FALSE), not null
|
||||||
|
# salt :string(255)
|
||||||
#
|
#
|
||||||
|
|
||||||
require 'spec_helper'
|
require 'spec_helper'
|
||||||
|
|
Loading…
Reference in a new issue