added forum topic/post
This commit is contained in:
4
test/factories/forum_post.rb
Normal file
4
test/factories/forum_post.rb
Normal file
@@ -0,0 +1,4 @@
|
||||
Factory.define(:forum_post) do |f|
|
||||
f.creator {|x| x.association(:user)}
|
||||
f.body {Faker::Lorem.sentences}
|
||||
end
|
||||
6
test/factories/forum_topic.rb
Normal file
6
test/factories/forum_topic.rb
Normal file
@@ -0,0 +1,6 @@
|
||||
Factory.define(:forum_topic) do |f|
|
||||
f.creator {|x| x.association(:user)}
|
||||
f.title {Faker::Lorem.words}
|
||||
f.is_sticky false
|
||||
f.is_locked false
|
||||
end
|
||||
Reference in New Issue
Block a user