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 |
||
---|---|---|
.. | ||
console_test.rb | ||
credentials_test.rb | ||
db_system_change_test.rb | ||
dbconsole_test.rb | ||
dev_test.rb | ||
encrypted_test.rb | ||
initializers_test.rb | ||
notes_test.rb | ||
routes_test.rb | ||
secrets_test.rb | ||
server_test.rb |