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:
@@ -32,8 +32,12 @@ class AttachmentsControllerTest < ActionController::TestCase
|
||||
@controller = AttachmentsController.new
|
||||
@request = ActionController::TestRequest.new
|
||||
@response = ActionController::TestResponse.new
|
||||
Attachment.storage_path = "#{Rails.root}/test/fixtures/files"
|
||||
User.current = nil
|
||||
set_fixtures_attachments_directory
|
||||
end
|
||||
|
||||
def teardown
|
||||
set_tmp_attachments_directory
|
||||
end
|
||||
|
||||
def test_show_diff
|
||||
|
||||
Reference in New Issue
Block a user