mirror of
https://github.com/discourse/discourse.git
synced 2024-11-26 02:40:53 -06:00
This reverts commit 5a8fdd02fe
.
This commit is contained in:
parent
061c8874f5
commit
0bf55fe2ff
@ -10,7 +10,7 @@ Discourse::Application.configure do
|
||||
config.cache_classes = true
|
||||
|
||||
# Configure static asset server for tests with Cache-Control for performance
|
||||
config.public_file_server.enabled = false
|
||||
config.public_file_server.enabled = true
|
||||
|
||||
# don't consider reqs local so we can properly handle exceptions like we do in prd
|
||||
config.consider_all_requests_local = false
|
||||
|
@ -266,6 +266,7 @@ describe UploadsController do
|
||||
end
|
||||
|
||||
it 'returns 200 when js file' do
|
||||
ActionDispatch::FileHandler.any_instance.stubs(:match?).returns(false)
|
||||
upload = upload_file("test.js", "themes")
|
||||
get upload.url
|
||||
expect(response.status).to eq(200)
|
||||
|
Loading…
Reference in New Issue
Block a user