diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2011-12-16 17:52:47 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2011-12-16 17:52:47 +0000 |
commit | ad25e3807d2d63b5796fe25099b20d687bec3704 (patch) | |
tree | 0364df609c68b250479fa65a57e0d65df8a2259e /test/unit/lib | |
parent | 14b931eb4a93fd0a55ca0959e0e8253d6f27e7a7 (diff) | |
download | redmine-ad25e3807d2d63b5796fe25099b20d687bec3704.tar.gz redmine-ad25e3807d2d63b5796fe25099b20d687bec3704.zip |
Make sure that tests restore the attachments path to the tmp dir so that fixture files don't get deleted.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8248 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/unit/lib')
-rw-r--r-- | test/unit/lib/redmine/export/pdf_test.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/unit/lib/redmine/export/pdf_test.rb b/test/unit/lib/redmine/export/pdf_test.rb index 3ee8caefd..6082eee9d 100644 --- a/test/unit/lib/redmine/export/pdf_test.rb +++ b/test/unit/lib/redmine/export/pdf_test.rb @@ -91,7 +91,7 @@ class PdfTest < ActiveSupport::TestCase end def test_attach - Attachment.storage_path = "#{Rails.root}/test/fixtures/files" + set_fixtures_attachments_directory str2 = "\x83e\x83X\x83g" str2.force_encoding("ASCII-8BIT") if str2.respond_to?(:force_encoding) |