Skip to content

Commit

Permalink
Fix send_file_upload_spec.rb with right MIME type
Browse files Browse the repository at this point in the history
This fixes a regression in mime-types-data:
mime-types/mime-types-data#20
  • Loading branch information
stanhu committed Jun 16, 2019
1 parent c5d2784 commit 47d3610
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/controllers/concerns/send_file_upload_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ def dynamic_segment

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:/)

Expand Down

0 comments on commit 47d3610

Please sign in to comment.