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
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
..
request Use match? where we don't need MatchData 2019-07-29 14:23:10 +09:00
routing Allow tests to run without a TTY 2019-08-14 10:52:21 -07:00
session Enable Layout/EmptyLinesAroundAccessModifier cop 2019-06-13 12:00:45 +09:00
system_testing Merge pull request #36545 from tomfakes/screenshot-updates 2019-07-27 22:48:24 -04:00
actionable_exceptions_test.rb Refactor after the most recent code review 2019-04-19 14:15:41 +09:00
callbacks_test.rb Enable Layout/EmptyLinesAroundAccessModifier cop 2019-06-13 12:00:45 +09:00
content_disposition_test.rb Encode Content-Disposition filenames on send_data and send_file 2018-09-13 21:38:46 +09:00
content_security_policy_test.rb Add support for script-src-attr / elem and style-src-attr / elem directives 2019-07-18 10:00:54 +09:00
cookies_test.rb Add test for cookie being modified by rotation 2019-06-22 12:43:11 -07:00
debug_exceptions_test.rb Use match? where we don't need MatchData 2019-07-27 13:06:49 +09:00
debug_locks_test.rb
exception_wrapper_test.rb Use match? where we don't need MatchData 2019-07-27 13:06:49 +09:00
executor_test.rb Replace assert ! with assert_not 2018-04-19 08:11:33 -04:00
feature_policy_test.rb Adds support for configuring HTTP Feature Policy (#33439) 2019-07-10 15:33:15 -07:00
header_test.rb Remove Rubocop's comments from Rails code base 2018-07-26 23:37:31 +03:00
host_authorization_test.rb Cleanup the whitelisting references after #33145 2019-02-03 10:58:10 +02:00
live_response_test.rb Allow custom cache-control header in AC::Live 2019-02-25 21:25:13 +03:00
mapper_test.rb
middleware_stack_test.rb Only build middleware proxy when instrumentating 2019-05-08 13:30:41 -07:00
mime_type_test.rb Revert "Use assert_match / assert_no_match for asserting match" 2019-07-29 14:17:36 +09:00
mount_test.rb mounted routes with non-word characters 2019-04-15 15:11:13 +02:00
prefix_generation_test.rb Use a single term instead of all terms used to describe path and URL helpers together 2019-07-26 23:54:39 +05:30
rack_cache_test.rb
reloader_test.rb Replace assert ! with assert_not 2018-04-19 08:11:33 -04:00
request_id_test.rb Enable Layout/EmptyLinesAroundAccessModifier cop 2019-06-13 12:00:45 +09:00
request_test.rb Fix "warning: ambiguous first argument; put parentheses or a space even after `/' operator" 2019-07-27 10:41:37 +09:00
response_test.rb Make ActionDispatch::Response#content_type behavior configurable 2019-06-21 07:17:14 +09:00
routing_assertions_test.rb
routing_test.rb Use match? where we don't need MatchData 2019-07-29 14:23:10 +09:00
runner_test.rb
show_exceptions_test.rb Add the Mime::Type::InvalidMimeType error in the default rescue_response: 2019-03-26 02:03:47 +01:00
ssl_test.rb Use match? where we don't need MatchData 2019-07-29 14:23:10 +09:00
static_test.rb Enable Layout/EmptyLinesAroundAccessModifier cop 2019-06-13 12:00:45 +09:00
test_request_test.rb
test_response_test.rb Remove deprecated methods in ActionDispatch::TestResponse 2019-01-17 16:08:31 -05:00
uploaded_file_test.rb Restore UploadedFile compatibility with IO.copy_stream 2019-02-23 23:36:58 +01:00
url_generation_test.rb Revert "Merge pull request #33970 from rails/eager-url-helpers" 2018-10-03 16:15:47 -05:00