rails/actionpack/lib/action_dispatch
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
..
http Use try only when we're unsure if the receiver would respond_to the method 2019-08-01 17:58:00 +09:00
journey Optimize Journey::Route#glob? 2019-07-26 13:56:25 -04:00
middleware Merge pull request #36537 from quadule/fix-cookie-rotation-hash-pollution 2019-08-05 03:57:08 +02:00
request Enable Layout/EmptyLinesAroundAccessModifier cop 2019-06-13 12:00:45 +09:00
routing Allow tests to run without a TTY 2019-08-14 10:52:21 -07:00
system_testing Use try only when we're unsure if the receiver would respond_to the method 2019-08-01 17:58:00 +09:00
testing fix follow_redirect! not using the same HTTP verb on 307 redirection: 2019-07-25 18:57:07 +02:00
journey.rb [Action Pack] require => require_relative 2017-10-21 22:48:28 +09:00
railtie.rb Don't include routes helpers inside System test class: 2019-07-16 22:18:32 +02:00
routing.rb Fix code examples' indentation in ActionDispatch::Routing [ci skip] 2019-02-26 14:04:08 -05:00
system_test_case.rb Stop setting a default Capybara app host 2019-07-24 22:19:21 -04:00