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/core_ext
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
..
class Prevent creation of instance methods when instance_reader = false, Grammar checks, Conditional statements combined 2013-12-19 19:35:13 +05:30
module Introduce Module#concerning 2013-12-17 02:31:57 -07:00
object
array_ext_test.rb Array#split preserving the calling array 2013-11-11 11:32:30 +05:30
bigdecimal_test.rb
blank_test.rb blank? and present? commit to return singletons [Xavier Noria & Pavel Pravosud] 2013-12-28 20:03:38 +01:00
class_test.rb
date_and_time_behavior.rb
date_ext_test.rb Added Date#all_week/month/quarter/year for generating date ranges 2013-12-03 20:32:20 +04:00
date_time_ext_test.rb
deep_dup_test.rb
duplicable_test.rb
duration_test.rb Prefer assert_raise instead of flunk + rescue to test for exceptions 2013-12-19 09:20:51 -02:00
enumerable_test.rb
file_test.rb
hash_ext_test.rb Tidy up previous commit, fix message assertion and improve tests 2013-12-03 00:15:34 -02:00
integer_ext_test.rb
kernel_test.rb Fix issue with Kernel#silence_stream leaking file descriptors 2013-12-06 10:24:06 +11:00
load_error_test.rb
marshal_test.rb
module_test.rb Unused classes in AS tests 2013-12-19 16:30:16 +09:00
name_error_test.rb Prefer assert_raise instead of flunk + rescue to test for exceptions 2013-12-19 09:20:51 -02:00
numeric_ext_test.rb Deprecated Numeric#{ago,until,since,from_now} 2013-11-26 22:24:19 -08:00
object_and_class_ext_test.rb Unused classes in test case 2013-12-19 08:15:06 +09:00
range_ext_test.rb Typo fix 2013-11-29 19:21:11 +05:30
regexp_ext_test.rb
string_ext_test.rb Add +capitalize+ option to Inflector.humanize 2013-11-06 13:03:46 -08:00
struct_test.rb
thread_test.rb
time_ext_test.rb
time_with_zone_test.rb
uri_ext_test.rb