added artists, comments
This commit is contained in:
7
test/factories/artist.rb
Normal file
7
test/factories/artist.rb
Normal file
@@ -0,0 +1,7 @@
|
||||
Factory.define(:artist) do |f|
|
||||
f.name {Faker::Name.first_name}
|
||||
f.creator {|x| x.association(:user)}
|
||||
f.updater_id {|x| x.creator_id}
|
||||
f.updater_ip_addr "127.0.0.1"
|
||||
f.is_active true
|
||||
end
|
||||
3
test/factories/artist_url.rb
Normal file
3
test/factories/artist_url.rb
Normal file
@@ -0,0 +1,3 @@
|
||||
Factory.define(:artist_url) do |f|
|
||||
f.url {Faker::Internet.domain_name}
|
||||
end
|
||||
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