added artists, comments
This commit is contained in:
7
test/factories/comment.rb
Normal file
7
test/factories/comment.rb
Normal file
@@ -0,0 +1,7 @@
|
||||
Factory.define(:comment) do |f|
|
||||
f.creator {|x| x.association(:user)}
|
||||
f.post {|x| x.association(:post)}
|
||||
f.body {Faker::Lorem.sentences}
|
||||
f.ip_addr "127.0.0.1"
|
||||
f.score 0
|
||||
end
|
||||
Reference in New Issue
Block a user