added unapproval+upload functional test
This commit is contained in:
3
test/factories/unapproval.rb
Normal file
3
test/factories/unapproval.rb
Normal file
@@ -0,0 +1,3 @@
|
||||
Factory.define(:unapproval) do |f|
|
||||
f.post {|x| x.association(:post)}
|
||||
end
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user