From e3a137ecb01c5ea62cde8ac9b56b217232328ea6 Mon Sep 17 00:00:00 2001 From: Go MAEDA Date: Sun, 13 Jul 2025 01:29:36 +0000 Subject: [PATCH] Remove a failing test in 5.1-stable that refers to missing foo.js (#43002). Patch by Go MAEDA (user:maeda). git-svn-id: https://svn.redmine.org/redmine/branches/5.1-stable@23885 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- ...repositories_subversion_controller_test.rb | 21 ------------------- 1 file changed, 21 deletions(-) diff --git a/test/functional/repositories_subversion_controller_test.rb b/test/functional/repositories_subversion_controller_test.rb index 44cc0a0b4..7d7421fd8 100644 --- a/test/functional/repositories_subversion_controller_test.rb +++ b/test/functional/repositories_subversion_controller_test.rb @@ -357,27 +357,6 @@ class RepositoriesSubversionControllerTest < Redmine::RepositoryControllerTest assert_equal "attachment; filename=\"helloworld.c\"; filename*=UTF-8''helloworld.c", @response.headers['Content-Disposition'] end - def test_entry_should_return_text_plain_for_js_files - # JavaScript files should be served as 'text/plain' instead of - # 'application/javascript' to avoid - # ActionController::InvalidCrossOriginRequest exception - assert_equal 0, @repository.changesets.count - @repository.fetch_changesets - @project.reload - assert_equal NUM_REV, @repository.changesets.count - get( - :raw, - :params => { - :id => PRJ_ID, - :repository_id => @repository.id, - :path => repository_path_hash(['subversion_test', 'foo.js'])[:param] - } - ) - assert_response :success - assert_equal 'text/plain', @response.media_type - assert_match /attachment/, @response.headers['Content-Disposition'] - end - def test_directory_entry assert_equal 0, @repository.changesets.count @repository.fetch_changesets