1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
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
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