added artists, comments

This commit is contained in:
albert
2010-02-15 13:59:58 -05:00
parent 3d9d6e229a
commit e9c2d1e636
28 changed files with 1044 additions and 7 deletions

7
test/factories/artist.rb Normal file
View 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

View File

@@ -0,0 +1,3 @@
Factory.define(:artist_url) do |f|
f.url {Faker::Internet.domain_name}
end

View 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