Skip to content
Snippets Groups Projects
Unverified Commit b35aca7c authored by Francisco Javier López's avatar Francisco Javier López
Browse files

Added spec for pdf

parent 1e62efdc
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -73,6 +73,14 @@ describe Projects::WikisController do
end
end
end
context 'when file is a pdf' do
let(:file_name) { 'git-cheat-sheet.pdf' }
it 'sets the content type to application/octet-stream' do
expect(response.headers['Content-Type']).to eq 'application/octet-stream'
end
end
end
end
 
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment