added pool unit test
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user