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/integration/api_test/attachments_test.rb | |
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/integration/api_test/attachments_test.rb')
-rw-r--r-- | test/integration/api_test/attachments_test.rb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/test/integration/api_test/attachments_test.rb b/test/integration/api_test/attachments_test.rb index 10b92328c..73ded9b30 100644 --- a/test/integration/api_test/attachments_test.rb +++ b/test/integration/api_test/attachments_test.rb @@ -30,7 +30,11 @@ class ApiTest::AttachmentsTest < ActionController::IntegrationTest def setup Setting.rest_api_enabled = '1' - Attachment.storage_path = "#{Rails.root}/test/fixtures/files" + set_fixtures_attachments_directory + end + + def teardown + set_tmp_attachments_directory end context "/attachments/:id" do |