rails/actionpack/lib
John Hawthorn 79953c476c Allow tests to run without a TTY
We had two tests which assigned IO.console.winsize (to ensure output was
consistent), however it's possible for IO.console to be nil.

This commit makes these tests stub IO.console_size directly (the method
we actually call, we shouldn't have been relying on that calling
IO.console.winsize anyways) or passes the width when initializing the
class.

This allows tests to run without a TTY. This can be tested with ex.

    ssh localhost "cd src/rails/actionpack && bundle exec rake"

or

    (setsid bundle exec rake) </dev/null |& cat
2019-08-14 10:52:21 -07:00
..
abstract_controller Reduce Array assignment by not giving a name for unused *args 2019-07-31 17:41:34 +09:00
action_controller Use media_type instead of content_type internally 2019-08-04 00:35:49 +01:00
action_dispatch Allow tests to run without a TTY 2019-08-14 10:52:21 -07:00
action_pack Start Rails 6.1 development 2019-04-24 15:57:14 -04:00
abstract_controller.rb Make sure to require active_support.rb before requiring active_support/rails.rb 2019-07-12 18:30:58 +09:00
action_controller.rb active_support/rails has to be required via abstract_controller.rb 2019-07-12 18:33:31 +09:00
action_dispatch.rb Remove invalid autoload of ActionDispatch::Http::Upload 2019-08-08 15:08:45 -04:00
action_pack.rb Bump license years for 2019 2018-12-31 10:24:38 +07:00