reset Attachment.storage_path at the end of attachment tests

Attachment files are deleted when database data were deleted.
So, other tests fail.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7911 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Toshi MARUYAMA
2011-11-24 08:10:41 +00:00
parent 4e83057e76
commit be29227c12
4 changed files with 26 additions and 6 deletions
+2
View File
@@ -141,5 +141,7 @@ class AttachmentTest < ActiveSupport::TestCase
assert_equal 17, la1.id
la2 = Attachment.latest_attach([a1, a2], "Testfile.PNG")
assert_equal 17, la2.id
set_tmp_attachments_directory
end
end
@@ -203,6 +203,7 @@ RAW
}
attachments = [a1, a2]
to_test.each { |text, result| assert_equal "<p>#{result}</p>", textilizable(text, :attachments => attachments) }
set_tmp_attachments_directory
end
def test_textile_external_links