summaryrefslogtreecommitdiff
path: root/test/spec_head.rb
Commit message (Collapse)AuthorAgeFilesLines
* Move Rack::MockRequest/Response into dedicated files. (#1935)Samuel Williams2022-08-031-1/+1
| | | | | | | * Move Rack::MockRequest/Response into dedicated files. At some point I think we want to improve the implementation of `Rack::Mock` in a separate gem. So let's be consistent with naming these files to avoid clobbering namespace in the future.
* Change SPEC to not allow uppercase header keysJeremy Evans2022-02-181-4/+4
| | | | | | Also, update CHANGELOG with other spec changes made since 2.2. Implements #1592
* Enable directly requiring Rack componentsJeremy Evans2022-02-031-0/+6
| | | | | | | | | | | | | | | | | | | | | 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-4/+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
* First attempt to mass-port from minitest/bacon to minitest/spec.Ryan Davis2015-06-121-15/+15
| | | | | I still can't run some of the tests, so they might have problems. I'll leave it to the CI to catch them.
* Added minitest/bacon to the top of each file so they can be run straight up.Ryan Davis2015-06-111-0/+1
|
* Fix race conditions in head middlewareJames Tucker2013-12-281-0/+2
|
* Use to_enum instead of Enumerator.new to remove Ruby 2.0 warningsSantiago Pastorino2012-12-291-8/+3
| | | | | This commit avoid warn message Enumerator.new without a block is deprecated; use Object#to_enum
* Refactor spec_cascade and spec_headJames Tucker2012-12-281-12/+1
| | | | * StringIO is a better choice than a struct here.
* Rack::Head now conforms to body.close SPECJames Tucker2012-12-281-4/+27
|
* fixes for 1.8Konstantin Haase2012-12-121-2/+6
|
* Wrap test apps in Rack::Lint and fix uncovered errors (third pass)Lars Gierth2012-03-311-3/+5
| | | | Update tests for Directory, ETag, File and Head.
* Rename spec/ back to test/Christian Neukirchen2010-06-151-0/+30