mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
79953c476c
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 |
||
---|---|---|
.. | ||
abstract | ||
assertions | ||
controller | ||
dispatch | ||
fixtures | ||
journey | ||
lib/controller | ||
routing | ||
abstract_unit.rb |