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
Jordan Thomas 4dfdc7eb90 Frozen truncate (#36109)
* Add test asserting truncate returns unfrozen string

* Ensure strings returned from truncate are not frozen

This fixes an issue where strings too short to be truncated were
returned unfrozen, where as long-enough strings were returned
frozen. Now retuned strings will not be frozen whether or not
the string returned was shortened.

* Update changelog w/ new truncate behavior description

[Jordan Thomas + Rafael Mendonça França]
2019-04-26 13:29:41 -04:00
..
autoloading_fixtures Fix safe_constantize to not raise a LoadError. 2019-01-09 14:52:46 -05:00
cache Redis fetch without names returns {} 2019-04-12 16:12:14 +03:00
concurrency Prevent deadlocks with load interlock and DB lock. 2017-11-09 10:46:01 -05:00
core_ext Frozen truncate (#36109) 2019-04-26 13:29:41 -04:00
dependencies Improve the logic that detects non-autoloaded constants 2018-10-28 16:34:50 +01:00
deprecation Refactor ActiveSupport::Deprecation.deprecate_methods not to expose internal methods 2019-04-19 22:00:09 +09:00
file_fixtures
fixtures Do nothing when the same block is included again. 2018-11-29 18:37:06 +00:00
json Enable Style/RedundantBegin cop to avoid newly adding redundant begin block 2018-12-21 06:12:42 +09:00
messages Fix RotationConfiguration test and remove nil-kind rotates. 2017-09-24 22:58:17 +02:00
metadata Remove redundant travel_back 2018-08-31 16:19:58 +09:00
notifications Update AS::Notifications::Instrumenter#instrument 2019-03-22 10:01:18 -04:00
testing assert_called_with should require args argument 2018-10-25 21:29:39 +03:00
xml_mini Add Style/RedundantFreeze to remove redudant .freeze 2018-09-29 07:18:44 +00:00
abstract_unit.rb Output junit format test report 2019-04-04 14:34:46 +09:00
actionable_error_test.rb Refactor after the most recent code review 2019-04-19 14:15:41 +09:00
array_inquirer_test.rb Use assert_predicate and assert_not_predicate 2018-01-25 23:32:59 -05:00
autoload_test.rb
benchmarkable_test.rb Change the empty block style to have space inside of the block 2018-09-25 13:19:35 -04:00
broadcast_logger_test.rb Merge pull request #34055 from Edouard-chin/ec-logger-fix 2018-10-03 16:45:53 -04:00
callback_inheritance_test.rb Define callbacks on descendants. 2018-02-06 16:05:39 -05:00
callbacks_test.rb Module#{define_method,alias_method,undef_method,remove_method} become public since Ruby 2.5 2018-12-21 01:39:18 +09:00
class_cache_test.rb Replace assert ! with assert_not 2018-04-19 08:11:33 -04:00
clean_backtrace_test.rb Use backtrace cleaner to clean up backtrace for verbose query logs 2018-08-14 09:15:28 +10:00
clean_logger_test.rb
concern_test.rb Do nothing when the same block is included again. 2018-11-29 18:37:06 +00:00
configurable_test.rb Use respond_to test helpers 2018-01-25 23:32:58 -05:00
constantize_test_cases.rb Fix safe_constantize to not raise a LoadError. 2019-01-09 14:52:46 -05:00
current_attributes_test.rb Support before_reset callback in CurrentAttributes 2019-01-30 16:10:06 +01:00
dependencies_test.rb ActiveSupport typo fixes. 2019-02-01 22:17:10 +05:30
dependencies_test_helpers.rb
deprecation_test.rb Enable Layout/SpaceAfterSemicolon cop to avoid newly adding odd spacing 2018-12-13 18:06:04 +09:00
descendants_tracker_test_cases.rb Use weak references in descendants tracker 2019-03-26 12:11:37 +02:00
descendants_tracker_with_autoloading_test.rb Use assert_empty and assert_not_empty 2018-01-25 23:32:59 -05:00
descendants_tracker_without_autoloading_test.rb Replace assert ! with assert_not 2018-04-19 08:11:33 -04:00
digest_test.rb Don't include ellipsis in truncated digest output 2017-12-17 00:49:02 +00:00
encrypted_configuration_test.rb Bugfix: ActiveSupport::EncryptedConfiguration reading of comment-only encrypted files (#34014) 2018-10-05 08:06:33 +09:00
encrypted_file_test.rb Raise an error only when require_master_key is specified 2017-12-18 08:04:15 +09:00
evented_file_update_checker_test.rb Do not add parent directory to file system monitoring 2018-12-18 08:09:16 +09:00
executor_test.rb Change the empty block style to have space inside of the block 2018-09-25 13:19:35 -04:00
file_update_checker_shared_tests.rb Match evented checker behavior on dir with no exts 2019-03-15 13:29:14 -07:00
file_update_checker_test.rb
gzip_test.rb Fix CustomCops/AssertNot to allow it to have failure message 2018-05-13 11:32:47 +09:00
hash_with_indifferent_access_test.rb ActiveSupport typo fixes. 2019-02-01 22:17:10 +05:30
i18n_test.rb
inflector_test.rb Fix bug with parametrize when locale is passed 2019-03-12 01:48:21 +05:30
inflector_test_cases.rb Fixed typo in test for activesupport parameterize 2017-11-01 10:27:29 +00:00
key_generator_test.rb Remove unused requires 2018-08-17 12:51:14 +09:00
lazy_load_hooks_test.rb Use class_eval or instance_eval when triggering lazy load hooks: 2018-07-03 23:29:43 -04:00
log_subscriber_test.rb cpu_time and allocations are 0 when JRuby is used 2018-07-30 15:10:30 +00:00
logger_test.rb Enable Performance/UnfreezeString cop 2018-09-23 08:56:55 +09:00
message_encryptor_test.rb Fix minor CodeClimate issue 2017-09-25 14:00:07 +02:00
message_verifier_test.rb Replace assert ! with assert_not 2018-04-19 08:11:33 -04:00
multibyte_chars_test.rb Add test for normalizing non-unicode string 2018-11-15 01:34:05 +09:00
multibyte_conformance_test.rb Deprecate Unicode#normalize and Chars#normalize (#34202) 2018-10-12 08:40:29 -07:00
multibyte_grapheme_break_conformance_test.rb Deprecate Unicode's #pack_graphemes and #unpack_graphemes methods 2018-10-18 14:10:30 -07:00
multibyte_normalization_conformance_test.rb Deprecate Unicode#normalize and Chars#normalize (#34202) 2018-10-12 08:40:29 -07:00
multibyte_proxy_test.rb
multibyte_test_helpers.rb Add Style/RedundantFreeze to remove redudant .freeze 2018-09-29 07:18:44 +00:00
notifications_test.rb Add test coverage 2019-04-16 05:20:35 +05:30
number_helper_i18n_test.rb Enable Layout/LeadingCommentSpace to not allow cosmetic changes in the future 2017-12-14 17:30:54 +09:00
number_helper_test.rb Enable Layout/LeadingCommentSpace to not allow cosmetic changes in the future 2017-12-14 17:30:54 +09:00
option_merger_test.rb
ordered_hash_test.rb
ordered_options_test.rb Replace assert ! with assert_not 2018-04-19 08:11:33 -04:00
parameter_filter_test.rb Implement AR#inspect using ParamterFilter. 2018-10-19 14:16:03 +09:00
reloader_test.rb Change the empty block style to have space inside of the block 2018-09-25 13:19:35 -04:00
rescuable_test.rb
safe_buffer_test.rb Preserve html_safe? status on ActiveSupport::SafeBuffer#* 2019-04-19 06:32:55 +09:00
security_utils_test.rb Replace assert ! with assert_not 2018-04-19 08:11:33 -04:00
share_lock_test.rb ActiveSupport typo fixes. 2019-02-01 22:17:10 +05:30
silence_logger_test.rb Don't use deprecated LoggerSilence 2018-10-04 08:23:49 +09:00
string_inquirer_test.rb Use assert_predicate and assert_not_predicate 2018-01-25 23:32:59 -05:00
subscriber_test.rb Added 'detach_from' to 'ActiveSupport::Subscriber' to detach a subscriber from a namespace. 2019-04-04 10:57:57 +05:30
tagged_logging_test.rb Merge pull request #27792 from tjoyal/sandbox-tagged-logging 2018-09-11 19:33:59 -04:00
test_case_test.rb Enable Lint/UselessAssignment cop to avoid unused variable warnings (#34904) 2019-01-09 18:09:01 +09:00
time_travel_test.rb ActiveSupport typo fixes. 2019-02-01 22:17:10 +05:30
time_zone_test.rb ActiveSupport typo fixes. 2019-02-01 22:17:10 +05:30
time_zone_test_helpers.rb Fix exception in AS::Timezone.all when any tzinfo data is missing 2018-04-18 21:45:13 +02:00
transliterate_test.rb Fix bug with parametrize when locale is passed 2019-03-12 01:48:21 +05:30
xml_mini_test.rb Suppress warning: BigDecimal.new is deprecated 2017-12-15 01:19:57 +00:00