1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/activesupport/test
Jean Boussier 0ac4c04143 Pathname.blank? only returns true for Pathname.new("")
Fix: https://github.com/rails/rails/issues/44452

We don't ignore blank path strings because as surprising as it is, they
are valid paths:

```ruby
>> path = Pathname.new(" ")
=> #<Pathname: >
>> path.write("test")
=> 4
>> path.exist?
=> true
```

Previously it would end up calling `Pathname#empty?` which returned true
if the path existed and was an empty directory or file.

That behavior was unlikely to be expected.
2022-02-19 09:54:58 +01:00
..
autoloading_fixtures
cache Fix MemCacheStoreTest stubbing 2022-02-16 13:23:12 +01:00
concurrency
core_ext Pathname.blank? only returns true for Pathname.new("") 2022-02-19 09:54:58 +01:00
dependencies
deprecation
file_fixtures
fixtures
json
messages
metadata
notifications
testing
xml_mini
abstract_unit.rb
actionable_error_test.rb
array_inquirer_test.rb
autoload_test.rb
benchmarkable_test.rb
broadcast_logger_test.rb
callback_inheritance_test.rb
callbacks_test.rb
clean_backtrace_test.rb
clean_logger_test.rb
concern_test.rb
configurable_test.rb
configuration_file_test.rb
constantize_test_cases.rb
constantize_test_helpers.rb
current_attributes_test.rb
dependencies_test.rb
deprecation_test.rb
descendants_tracker_test.rb
digest_test.rb
encrypted_configuration_test.rb
encrypted_file_test.rb
error_reporter_test.rb
evented_file_update_checker_test.rb
execution_context_test.rb
executor_test.rb
file_update_checker_shared_tests.rb
file_update_checker_test.rb
fork_tracker_test.rb
gzip_test.rb
hash_with_indifferent_access_test.rb
i18n_test.rb
inflector_test.rb
inflector_test_cases.rb
isolated_execution_state_test.rb
key_generator_test.rb
lazy_load_hooks_test.rb
log_subscriber_test.rb Remove child event tracking from AS::Subscriber 2022-02-17 08:20:01 -08:00
logger_test.rb
message_encryptor_test.rb
message_verifier_test.rb
multibyte_chars_test.rb
multibyte_proxy_test.rb
multibyte_test_helpers.rb
notifications_test.rb Deprecate Event#{children,parent_of} 2022-02-17 08:20:01 -08:00
number_helper_i18n_test.rb
number_helper_test.rb
option_merger_test.rb
ordered_hash_test.rb
ordered_options_test.rb
parameter_filter_test.rb
per_thread_registry_test.rb
reloader_test.rb
rescuable_test.rb
safe_buffer_test.rb
secure_compare_rotator_test.rb
security_utils_test.rb
share_lock_test.rb
silence_logger_test.rb
string_inquirer_test.rb
subscriber_test.rb
tagged_logging_test.rb
test_case_test.rb
time_travel_test.rb
time_zone_test.rb
time_zone_test_helpers.rb
transliterate_test.rb
xml_mini_test.rb