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
Xavier Noria 126dc47665 blank? and present? commit to return singletons [Xavier Noria & Pavel Pravosud]
The contract of blank? and present? was in principle to return Object, as we
generally do, the test suite and description was consistent with that, but some
examples had comments like "# => true".

This cannot be unclear, we either fix the examples, or update the contract.

Since users may be already assuming singletons due to the examples and the fact
that they were returned before 30ba7ee, the safest option seems to be to revise
the contract and the implementation of String#blank?

The motivation for 30ba7ee was to improve the performance of the predicate, the
refactor based on === is on par regarding speed.

With this commit we start documenting return types using YARD conventions. We
plan to document return types gradually.
2013-12-28 20:03:38 +01:00
..
autoloading_fixtures
core_ext blank? and present? commit to return singletons [Xavier Noria & Pavel Pravosud] 2013-12-28 20:03:38 +01:00
dependencies
deprecation
fixtures Unused classes in AS tests 2013-12-19 16:30:16 +09:00
json Added back the encode_big_decimal_as_string option with warning 2013-12-02 17:22:57 -08:00
notifications
testing Unused classes in AS tests 2013-12-19 16:30:16 +09:00
xml_mini
abstract_unit.rb Disable available locales checks to avoid warnings running the tests 2013-12-17 09:05:41 -02:00
autoload_test.rb
benchmarkable_test.rb
broadcast_logger_test.rb
caching_test.rb Merge pull request #11785 from grosser/grosser/file-unless-exist 2013-10-28 19:09:22 -02:00
callback_inheritance_test.rb
callbacks_test.rb Unused classes in AS tests 2013-12-19 16:30:16 +09:00
class_cache_test.rb
clean_backtrace_test.rb
clean_logger_test.rb
concern_test.rb
configurable_test.rb Make sure multiline string is not accepted by the regexp 2013-12-19 17:28:19 -02:00
constantize_test_cases.rb
dependencies_test.rb Prefer assert_raise instead of flunk + rescue to test for exceptions 2013-12-19 09:20:51 -02:00
dependencies_test_helpers.rb
deprecation_test.rb Prefer assert_raise instead of flunk + rescue to test for exceptions 2013-12-19 09:20:51 -02:00
descendants_tracker_test_cases.rb
descendants_tracker_with_autoloading_test.rb
descendants_tracker_without_autoloading_test.rb Improve the test code for #8422 2013-10-24 20:14:30 -02:00
file_update_checker_test.rb
gzip_test.rb
i18n_test.rb
inflector_test.rb wrap test that changes inflections in with_dup 2013-11-28 12:35:20 -05:00
inflector_test_cases.rb wrap test that changes inflections in with_dup 2013-11-28 12:35:20 -05:00
key_generator_test.rb
lazy_load_hooks_test.rb
load_paths_test.rb
log_subscriber_test.rb
logger_test.rb
message_encryptor_test.rb Merge pull request #10635 from vipulnsward/change_to_strict 2013-12-06 08:08:28 -08:00
message_verifier_test.rb PR #10635 introduces rescue from ArgumentError thrown by Base64.strict_decode64. 2013-12-12 22:15:42 +05:30
multibyte_chars_test.rb Prefer assert_raise instead of flunk + rescue to test for exceptions 2013-12-19 09:20:51 -02:00
multibyte_conformance.rb
multibyte_test_helpers.rb
multibyte_unicode_database_test.rb
notifications_test.rb
number_helper_i18n_test.rb
number_helper_test.rb Fix AS::NumberHelper results with large precisions 2013-12-20 16:26:35 +09:00
option_merger_test.rb
ordered_hash_test.rb Moved all JSON core extensions into core_ext/object/json 2013-09-13 03:04:10 -07:00
ordered_options_test.rb
rescuable_test.rb
safe_buffer_test.rb Fixes interpolation on SafeBuffer 2013-12-14 10:10:47 +00:00
string_inquirer_test.rb
subscriber_test.rb Allow attaching to AS::Notifications namespace up front 2013-09-20 10:14:28 +02:00
tagged_logging_test.rb
test_test.rb Change all MiniTest to Minitest since, MiniTest namespace has been renamed to Minitest 2013-12-18 14:39:50 +05:30
time_zone_test.rb Add support for localized date references 2013-12-03 10:37:01 -05:00
transliterate_test.rb
xml_mini_test.rb