added pool unit test

This commit is contained in:
albert
2010-02-13 05:11:27 -05:00
parent 1ae93aecd7
commit 3d9d6e229a
6 changed files with 137 additions and 10 deletions

View File

@@ -2,4 +2,6 @@ Factory.define(:pool) do |f|
f.name {Faker::Name.first_name}
f.creator {|x| x.association(:user)}
f.description {Faker::Lorem.sentences}
f.updater_id {|x| x.creator_id}
f.updater_ip_addr "127.0.0.1"
end

View File

@@ -11,4 +11,5 @@ Factory.define(:post) do |f|
f.image_width 100
f.image_height 200
f.file_size 2000
f.rating "q"
end