summaryrefslogtreecommitdiff
path: root/test/spec_media_type.rb
Commit message (Collapse)AuthorAgeFilesLines
* Enable directly requiring Rack componentsJeremy Evans2022-02-031-0/+4
| | | | | | | | | | | | | | | | | | | | | Add test:separate task to test run each test file separately. This is to test that directly requiring a rack component will work. With test:separate, the test helper will not require rack, and each test file should call separate_testing with a block that uses require_relative to only require that component being tested. Add the appropriate relative requires to get all tests passing when run separately. Note that this isn't foolproof. In many cases, the tests use Rack components that are not under test (such as lint and mock), and both of those other other rack components, so it's possible the tests are loading hidden dependencies. I attempted to check each component to try to find the hidden dependencies, but it is certainly possible I missed something. Implements #1621.
* DRY up tests using the test helperJeremy Evans2020-01-271-2/+1
| | | | | | For some reason, the test helper was only used by a single spec file. This uses it for all spec files. While here, rely on autoload loading the libraries instead of loading everything manually.
* Allow global expectation explicitly for minitest.Nikolay Rys2019-10-061-1/+1
| | | | Global expectations have been deprecated in minitest and will start fail in the upcoming major release. Right now it results in multiple warnings. We need to allow them explicitly. Also fixing spacing style in gemspec.
* RuboCop: enable Layout/Space* cops (#1259)yhirano552018-04-171-1/+1
|
* Add frozen_string_literal: true to remaining filesDillon Welch2018-04-131-0/+2
| | | | See https://github.com/rack/rack/issues/1243 for history of this task
* To support minitest 6 and prevent error ouput in minitest 5, use ↵Jian Weihang2016-12-051-1/+1
| | | | `must_be_nil` if expecting nil.
* Merge branch 'master' into zenspider-minitest.phase.2Aaron Patterson2015-06-161-6/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * master: Cleanup older code than Ruby 2.0+ one extract a `make_cookie_header` method Fix encoding issue in source files Use ::Encoding instead of Parser::Encoding FIX: Backwards compatibility with soupy data Force encoding of parsed filename Feature: Provided support for non-ascii character in public header Simplify regular expressions and extract the extended filename Move RFC2183 constant too Start updating definitions for RFC 2231 Add failing test replace OkJson in favor of the JSON gem Constantize all rack environment variables and make them frozen set the logger to nil update history Added media_type methods in Rack::Response raise an exception if the parameters are too deep Handle param parsing errors in MethodOverride silently Conflicts: rack.gemspec test/spec_chunked.rb test/spec_lint.rb test/spec_multipart.rb test/spec_request.rb test/spec_session_cookie.rb test/spec_utils.rb test/spec_version.rb
* Added media_type methods in Rack::ResponseArtūrs Mekšs2015-06-121-0/+41