diff options
author | Stan Hu <stanhu@gmail.com> | 2019-06-17 02:40:22 +0300 |
---|---|---|
committer | Stan Hu <stanhu@gmail.com> | 2019-06-17 02:40:22 +0300 |
commit | 47d3610d0d532c0bea6c7434c47a1f9b59164201 (patch) | |
tree | 1b9141ab1d8928c1ff898dbbc73a16055252e130 /spec | |
parent | c5d2784e5e0016aa481bb79d2503ca482f0967fb (diff) |
Fix send_file_upload_spec.rb with right MIME type
This fixes a regression in mime-types-data:
https://github.com/mime-types/mime-types-data/pull/20
Diffstat (limited to 'spec')
-rw-r--r-- | spec/controllers/concerns/send_file_upload_spec.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/controllers/concerns/send_file_upload_spec.rb b/spec/controllers/concerns/send_file_upload_spec.rb index a3ce08f736c..3bf0ec799c7 100644 --- a/spec/controllers/concerns/send_file_upload_spec.rb +++ b/spec/controllers/concerns/send_file_upload_spec.rb @@ -115,7 +115,7 @@ describe SendFileUpload do it 'sends a file with a custom type' do headers = double - expected_headers = /response-content-disposition=attachment%3B%20filename%3D%22test.js%22%3B%20filename%2A%3DUTF-8%27%27test.js&response-content-type=application%2Fecmascript/ + expected_headers = /response-content-disposition=attachment%3B%20filename%3D%22test.js%22%3B%20filename%2A%3DUTF-8%27%27test.js&response-content-type=application%2Fjavascript/ expect(Gitlab::Workhorse).to receive(:send_url).with(expected_headers).and_call_original expect(headers).to receive(:store).with(Gitlab::Workhorse::SEND_DATA_HEADER, /^send-url:/) |