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
Prathamesh Sonpatki 8776f15b44
Fix an issue with JSON encoding of "Infinity" and "NaN" values
- When `as_json` returns `Infinity` or `NaN` as the value of any of the key,
  we don't used to call `as_json` on it as it was treated as primitive.
- This used to pass `Infinity` or `NaN` to `JSON.generate` and Ruby used
  to throw an error for `Infinity/NaN not allowed in JSON.`
- This patch changes the code to call `as_json` on these primitives so
  that they are converted to proper values before being passed to
  `JSON.generate`.
- Fixes #26877.
2016-10-30 20:08:55 +05:30
..
autoloading_fixtures
core_ext Add more rubocop rules about whitespaces 2016-10-29 01:17:49 -02:00
dependencies
deprecation
file_fixtures
fixtures
json Fix an issue with JSON encoding of "Infinity" and "NaN" values 2016-10-30 20:08:55 +05:30
notifications Add more rubocop rules about whitespaces 2016-10-29 01:17:49 -02:00
testing
xml_mini
abstract_unit.rb
array_inquirer_test.rb
autoload_test.rb
benchmarkable_test.rb
broadcast_logger_test.rb Add more rubocop rules about whitespaces 2016-10-29 01:17:49 -02:00
caching_test.rb Add more rubocop rules about whitespaces 2016-10-29 01:17:49 -02:00
callback_inheritance_test.rb
callbacks_test.rb Add more rubocop rules about whitespaces 2016-10-29 01:17:49 -02:00
class_cache_test.rb
clean_backtrace_test.rb
clean_logger_test.rb
concern_test.rb
configurable_test.rb
constantize_test_cases.rb
dependencies_test.rb Add more rubocop rules about whitespaces 2016-10-29 01:17:49 -02:00
dependencies_test_helpers.rb
deprecation_test.rb Add more rubocop rules about whitespaces 2016-10-29 01:17:49 -02:00
descendants_tracker_test_cases.rb
descendants_tracker_with_autoloading_test.rb
descendants_tracker_without_autoloading_test.rb
evented_file_update_checker_test.rb
executor_test.rb Skip test that depends on RubyVM when it is not available (JRuby). 2016-10-21 14:36:51 -05:00
file_update_checker_shared_tests.rb
file_update_checker_test.rb
gzip_test.rb Add more rubocop rules about whitespaces 2016-10-29 01:17:49 -02:00
i18n_test.rb
inflector_test.rb
inflector_test_cases.rb Add more rubocop rules about whitespaces 2016-10-29 01:17:49 -02:00
key_generator_test.rb
lazy_load_hooks_test.rb
log_subscriber_test.rb
logger_test.rb
message_encryptor_test.rb Add more rubocop rules about whitespaces 2016-10-29 01:17:49 -02:00
message_verifier_test.rb
multibyte_chars_test.rb Add more rubocop rules about whitespaces 2016-10-29 01:17:49 -02:00
multibyte_conformance_test.rb
multibyte_grapheme_break_conformance_test.rb
multibyte_normalization_conformance_test.rb
multibyte_proxy_test.rb
multibyte_test_helpers.rb Add more rubocop rules about whitespaces 2016-10-29 01:17:49 -02:00
multibyte_unicode_database_test.rb
notifications_test.rb
number_helper_i18n_test.rb
number_helper_test.rb Add more rubocop rules about whitespaces 2016-10-29 01:17:49 -02:00
option_merger_test.rb
ordered_hash_test.rb Add more rubocop rules about whitespaces 2016-10-29 01:17:49 -02:00
ordered_options_test.rb
reloader_test.rb
rescuable_test.rb
safe_buffer_test.rb Add more rubocop rules about whitespaces 2016-10-29 01:17:49 -02:00
security_utils_test.rb
share_lock_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 Add more rubocop rules about whitespaces 2016-10-29 01:17:49 -02:00
time_zone_test_helpers.rb
transliterate_test.rb
xml_mini_test.rb Add more rubocop rules about whitespaces 2016-10-29 01:17:49 -02:00