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 Ensure all-caps nested consts marked as autoloaded 2013-08-27 08:20:33 +01:00
core_ext blank? and present? commit to return singletons [Xavier Noria & Pavel Pravosud] 2013-12-28 20:03:38 +01:00
dependencies Don't blindly call blame_file! on exceptions in ActiveSupport::Dependencies::Loadable 2013-06-09 18:20:10 -04:00
deprecation Remove deprecated AS::BasicObject, use AS::ProxyObject instead 2013-07-01 22:26:54 -03:00
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 ActiveSupport::Notifications::Instrumenter#instrument should yield 2013-03-02 16:05:05 -08:00
testing Unused classes in AS tests 2013-12-19 16:30:16 +09:00
xml_mini Rewind StringIO instances before be parsed again 2013-06-16 00:32:33 +02:00
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 Removed unused setup 2013-04-10 16:57:12 +05:30
callbacks_test.rb Unused classes in AS tests 2013-12-19 16:30:16 +09:00
class_cache_test.rb
clean_backtrace_test.rb Fix BacktraceCleaner#noise for multiple silencers. 2013-06-20 19:54:32 +01:00
clean_logger_test.rb
concern_test.rb remove useless duplication in include test 2013-07-22 10:31:14 +02:00
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 Fix #10932. Treat "" and "::" as invalid on constantize 2013-06-14 11:20:15 +04:00
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 Fix typo in DependenciesTestHelpers module name 2013-03-12 10:33:32 +05:30
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 fix assertions 2012-10-18 13:14:43 -07:00
descendants_tracker_with_autoloading_test.rb fix some typos in AS 2013-03-30 14:01:42 +05:30
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 added compress options for gzip 2013-02-10 20:01:42 +09:00
i18n_test.rb Fix failing test about date.order translation values 2013-01-19 19:32:33 -02:00
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 Drop extra variable from test 2013-06-12 11:18:35 +05:30
log_subscriber_test.rb
logger_test.rb Add ActiveSupport::Logger#silence that works the same as the old Logger#silence extension 2012-12-21 19:15:36 +01:00
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 Bug fix: Evented notification subscribers can handle published events 2013-05-17 16:27:23 -07:00
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 fix some typos in AS 2013-03-30 14:01:42 +05:30
rescuable_test.rb Fix some typo in method names, variables 2013-05-26 16:27:05 +05:30
safe_buffer_test.rb Fixes interpolation on SafeBuffer 2013-12-14 10:10:47 +00:00
string_inquirer_test.rb Alias refute methods to assert_not and perfer assert_not on tests 2012-12-31 13:58:52 -03:00
subscriber_test.rb Allow attaching to AS::Notifications namespace up front 2013-09-20 10:14:28 +02:00
tagged_logging_test.rb Revert "make new rails apps log to STDOUT" 2013-03-15 10:38:00 -07:00
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 Be sure to restore the default I18n.locale after changed its value in a test 2013-09-10 19:54:49 +02:00
xml_mini_test.rb Fix order dependent test 2013-09-09 17:11:16 +02:00