rails--rails/actionpack/test/dispatch/routing
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
..
concerns_test.rb
custom_url_helpers_test.rb
inspector_test.rb Allow tests to run without a TTY 2019-08-14 10:52:21 -07:00
ipv6_redirect_test.rb Revert "Merge pull request #33970 from rails/eager-url-helpers" 2018-10-03 16:15:47 -05:00
non_dispatch_routed_app_test.rb Support testing of non-ActionDispatch-routed apps. 2019-02-05 20:25:39 -08:00
route_set_test.rb url -> URL where apt inside actionpack/ 2019-04-01 22:58:02 +05:30