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
Godfrey Chan 798881ecd4 Do not expose internal state in the public encoder API (i.e. as_json)
See [1] for why this is not a good idea.

As part of this refactor, circular reference protection in as_json has
been removed and the corresponding error class has been deprecated.

As discussed with @jeremy, circular reference error is considered
programmer errors and protecting against it is out of scope for
the encoder.

This is again based on the excellent work by @sergiocampama in #11728.

[1]: https://github.com/intridea/multi_json/pull/138#issuecomment-24468223
2013-11-06 17:16:11 -08:00
..
autoloading_fixtures Ensure all-caps nested consts marked as autoloaded 2013-08-27 08:20:33 +01:00
core_ext Add +capitalize+ option to Inflector.humanize 2013-11-06 13:03:46 -08: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 JDOM XXE Protection [CVE-2013-1856] 2013-03-15 17:46:15 -07:00
json Do not expose internal state in the public encoder API (i.e. as_json) 2013-11-06 17:16:11 -08:00
notifications ActiveSupport::Notifications::Instrumenter#instrument should yield 2013-03-02 16:05:05 -08:00
testing determine_constant_from_test_name does not swallow NoMethodErrors [Yves Senn] 2013-03-28 10:04:39 +01:00
xml_mini Rewind StringIO instances before be parsed again 2013-06-16 00:32:33 +02:00
abstract_unit.rb Merge pull request #11932 from gaurish/skip-encoding-convertor 2013-08-21 14:49:03 -03: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 remove deprecation notices 2013-05-15 09:40:58 -07: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
constantize_test_cases.rb Fix #10932. Treat "" and "::" as invalid on constantize 2013-06-14 11:20:15 +04:00
dependencies_test.rb Merge pull request #12412 from bf4/allow_pathname_for_require_dependency 2013-09-30 23:22:11 -07:00
dependencies_test_helpers.rb Fix typo in DependenciesTestHelpers module name 2013-03-12 10:33:32 +05:30
deprecation_test.rb renames the :abort deprecation behaviour to :raise 2013-08-13 01:44:52 +02:00
descendants_tracker_test_cases.rb
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
empty_bool.rb
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 Add +capitalize+ option to Inflector.humanize 2013-11-06 13:03:46 -08:00
inflector_test_cases.rb Add +capitalize+ option to Inflector.humanize 2013-11-06 13:03:46 -08: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
message_encryptor_test.rb Fixed bad tests to clean up after themselves. 2013-05-03 15:37:18 -07:00
message_verifier_test.rb Fixed bad tests to clean up after themselves. 2013-05-03 15:37:18 -07:00
multibyte_chars_test.rb
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 Move number_to_human test from AP to AS 2013-02-22 19:44:50 -03: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
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 Revert "make new rails apps log to STDOUT" 2013-03-15 10:38:00 -07:00
test_test.rb remove deprecated assert_present and assert_blank. 2013-07-01 22:06:26 +02:00
time_zone_test.rb Add regression tests for #9678 2013-03-13 05:46:34 +00: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