Commit 8155d2728a1795d32587bed2f4c64e06f70d865a

Authored by AntonioTerceiro
1 parent e05c31b8

ActionItem629: saving test data under test/tmp

git-svn-id: https://svn.colivre.coop.br/svn/noosfero/trunk@2428 3f533792-8f58-4932-b0fe-aaf55b0a4547
Showing 1 changed file with 3 additions and 0 deletions   Show diff stats
test/test_helper.rb
... ... @@ -9,6 +9,9 @@ require 'noosfero/test'
9 9  
10 10 FileUtils.rm_rf(File.join(RAILS_ROOT, 'index', 'test'))
11 11  
  12 +Image.attachment_options[:path_prefix] = 'test/tmp/public/images'
  13 +Thumbnail.attachment_options[:path_prefix] = 'test/tmp/public/thumbnails'
  14 +
12 15 class Test::Unit::TestCase
13 16 # Transactional fixtures accelerate your tests by wrapping each test method
14 17 # in a transaction that's rolled back on completion. This ensures that the
... ...