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
This commit is contained in:
1 parent
14b931eb4a
commit
ad25e3807d
7 files changed
+18
-5
No files matched your search
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user