1
0
Fork 0
mirror of https://github.com/puma/puma.git synced 2022-11-09 13:48:40 -05:00
puma--puma/test/config
Jesús Burgos Maciá d39fe92a2d Fixes the bug that wouldn't allow no_token be set to true (#1803)
* Fix crash when no_token is set

* Use a more meaningful name instead of an empty string

* Adds a test to ensure `{ no_token: true }` works

* Adds an explanation for the usage of a String

Just to justify the use of a String instead of a Symbol.

* Removes thread that would start the server

This removes the part of the test that would start the server. The
reason why the thread was being created originally in the PR was to
ensure that the server was booting even with `{ no_token: true }`.

I believe we don't need to test the full server boot but just ensure
that we won't pass a Symbol to OptionParser. In particular the test
ensures that the token will be set to `'none'` when `no_token: true`.

There're already other tests testing that the server boots.
2019-05-28 09:37:34 -04:00
..
ab_rs.rb sort configs/rackups/tests (#1268) 2017-04-11 14:08:18 -07:00
app.rb Ignore multiple port declarations 2015-02-17 08:58:19 -06:00
control_no_token.rb Fixes the bug that wouldn't allow no_token be set to true (#1803) 2019-05-28 09:37:34 -04:00
plugin.rb Add plugin mechanism and initial plugin 2016-02-06 22:28:02 -08:00
settings.rb Specified parameters should overwrite loaded config files 2017-01-30 20:29:19 -08:00
simple.rb sort configs/rackups/tests (#1268) 2017-04-11 14:08:18 -07:00
ssl_config.rb Allow mutual TLS CA to be set using ssl_bind DSL 2019-02-20 14:27:00 -06:00
state_file_testing_config.rb Let's use Rubocop! (#1325) 2017-06-04 13:21:05 -07:00
suppress_exception.rb add tests 2019-02-21 21:31:35 +01:00
with_integer_convert.rb worker_timeout, worker_boot_timeout, worker_shutdown_timeout fix integer convert (#1450) 2018-03-19 15:05:15 -06:00