added unapproval+upload functional test

This commit is contained in:
albert
2011-01-31 18:01:48 -05:00
parent 28b42e791c
commit df20d9233b
13 changed files with 174 additions and 9 deletions

View File

@@ -0,0 +1,3 @@
Factory.define(:unapproval) do |f|
f.post {|x| x.association(:post)}
end

View File

@@ -13,6 +13,7 @@ Factory.define(:source_upload, :parent => :upload) do |f|
end
Factory.define(:jpg_upload, :parent => :upload) do |f|
f.content_type "image/jpeg"
f.file_path do
FileUtils.cp("#{Rails.root}/test/files/test.jpg", "#{Rails.root}/tmp")
"#{Rails.root}/tmp/test.jpg"