summary refs log tree commit
path: root/test/spec_server.rb
DateCommit message (Collapse)
2014-09-01Restore Rack::Server#middleware backward compatibility
Fixes regression in #706. It intends to retain backward compatibility with calls to #middleware by aliasing the method to the new default_middleware_for_environment, but since it doesn't call #middleware internally, subclasses that overrode it no longer work. Restored compatibility by calling #middleware internally and delegating its implementation to the new default_middleware_for_environment methods.
2014-07-19add quiet mode of rack server, rackup --quiet
2014-07-18Undo test that falsely exemplifies production env
2014-07-18default_middleware_by_environment should always returns empty array for ↵
unknown keys The current behaviour break rails server for any environment different of development. This behaviour was removed at 704be37e with a warning that if this behavior is supported tests need to be added. The tests are already there and they were not failing because "none" environment were added to the hash. This environment is not a valid environment and it is on the tests exactly to assert the behaviour that default_middleware_by_environment always return an empty array for unknown keys.
2014-07-14Enable cleanup of Tempfiles from multipart form data by default
2014-07-13Give @middleware a more semantic name.
Had to put the class method definitions in an eigenclass wrapper to use the 'alias' keyword sanely. It wouldn't be necessary if old behavior of the middleware was unsupported, but that would be too invasive for just a small clarity change.
2013-01-30Stop overwriting existing pidfiles.
A race condition can arise when two servers are started simultaneously. Both instances may complete the check for an existing pidfile before either one writes it. Now the pidfile is opened with ::File::EXCL, which raises an error if the file already exists. This error is handled by retrying the check and the write.
2013-01-13Squash test warnings
2013-01-03Add a rackup option for one-liner rack app server
2012-05-13Improve pidfile reporting and test coverage
* Output reduced to a single line * Integration test added that also suppresses and checks output
2012-05-12Check if the PID in pidfile is still running #371
Then abort or remove the pidfile
2011-12-21Rack::Server#start passes any given block through to Handler#run.
Utilize this in the Rack::Server start test to avoid race condition on jruby
2011-05-021.9 lambdas care (yep, they're emo - rock on.)
2011-05-02Add some basic Rack::Server tests, nothing like the oldies, but faster
2010-07-12Rack::Server should accept :app and override :config.
Signed-off-by: raggi <jftucker@gmail.com>