summaryrefslogtreecommitdiff
path: root/spec/lib/gitlab/middleware/multipart_spec.rb
Commit message (Collapse)AuthorAgeFilesLines
* Inject ::UploadedFile from Multipart middlewareJacob Vosmaer2016-12-211-3/+3
| | | | | | I mistakenly concluded Rack::Multipart injects File instances into the params. These should be UploadedFile instances. This reuses a mock UploadedFile class we already had in GitLab.
* Fix specs in Ruby 2.1Sean McGivern2016-12-161-3/+3
| | | | | Ruby 2.1 requires a basename argument to `Tempfile.open`, so just call it something that makes sense in context for the spec.
* Add Gitlab::Middleware::MultipartJacob Vosmaer2016-12-151-0/+74