rails/activesupport/test/core_ext
Alvaro Martin Fraguas 649516ce0f
Fix and add protections for XSS in names.
Add the method ERB::Util.xml_name_escape to escape dangerous characters
in names of tags and names of attributes, following the specification of
XML.

Use that method in the tag helpers of ActionView::Helpers. Rename the option
:escape_attributes to :escape, to simplify by applying the option to the whole
tag.
2022-04-26 12:34:42 -07:00
..
array Keep to_formatted_s working as before and add tests for it 2022-02-08 16:22:35 +00:00
class Class attribute writer is a public method 2020-10-02 15:53:46 +09:00
digest Avoid adding new method to `ActiveSupport`. 2021-11-02 01:12:32 +00:00
hash Remove deprecated file `active_support/core_ext/hash/transform_values` 2020-10-30 00:25:58 +00:00
kernel allow running each test with pure ruby path/to/test.rb 2019-12-18 08:49:19 -06:00
module Use IsolatedExecutionState in `thread_mattr_accessor` 2021-11-24 11:41:16 +01:00
object Use duck_string instead of string 2022-03-18 20:28:33 -03:00
pathname `Pathname.blank?` only returns true for `Pathname.new("")` 2022-02-19 09:54:58 +01:00
bigdecimal_test.rb allow running each test with pure ruby path/to/test.rb 2019-12-18 08:49:19 -06:00
class_test.rb allow running each test with pure ruby path/to/test.rb 2019-12-18 08:49:19 -06:00
date_and_time_behavior.rb allow running each test with pure ruby path/to/test.rb 2019-12-18 08:49:19 -06:00
date_and_time_compatibility_test.rb Deprecate preserving the pre-Ruby 2.4 behavior of `to_time` 2022-03-20 10:07:59 +00:00
date_ext_test.rb Keep to_formatted_s working as before and add tests for it 2022-02-08 16:22:35 +00:00
date_time_ext_test.rb Keep to_formatted_s working as before and add tests for it 2022-02-08 16:22:35 +00:00
duration_test.rb fix: equivalent negative durations add to the same time (#43795) 2021-12-10 14:03:04 -05:00
enumerable_test.rb Fix style in test/core_ext/enumerable_test.rb 2022-04-06 13:21:49 -04:00
file_test.rb atomic write race condition 2022-01-16 16:54:58 -08:00
hash_ext_test.rb Revert "Merge pull request #41931 from MarcelEeken/deep-merge-changing-original-hash" 2021-04-13 12:12:03 +02:00
integer_ext_test.rb allow running each test with pure ruby path/to/test.rb 2019-12-18 08:49:19 -06:00
kernel_test.rb [Active Support] Add explicit assertions to tests with no assertions 2022-02-15 23:44:25 +00:00
load_error_test.rb allow running each test with pure ruby path/to/test.rb 2019-12-18 08:49:19 -06:00
module_test.rb Autocorrect Rubocop roles 2021-04-13 18:32:25 +00:00
name_error_test.rb Remove all version checking for older Rubies in tests 2021-02-05 13:21:45 +09:00
numeric_ext_test.rb Keep to_formatted_s working as before and add tests for it 2022-02-08 16:22:35 +00:00
range_ext_test.rb Fix `Range#overlaps?` for beginless ranges 2022-03-23 22:40:24 +02:00
regexp_ext_test.rb allow running each test with pure ruby path/to/test.rb 2019-12-18 08:49:19 -06:00
secure_random_test.rb update tests for SecureRandom.base58 method 2021-05-12 01:05:22 +05:30
string_ext_test.rb Fix and add protections for XSS in names. 2022-04-26 12:34:42 -07:00
symbol_ext_test.rb Removes Symbol#start_with? and Symbol#end_with? since they are defined in Ruby 2.7 2021-02-07 21:47:25 -03:00
time_ext_test.rb Keep to_formatted_s working as before and add tests for it 2022-02-08 16:22:35 +00:00
time_with_zone_test.rb Keep to_formatted_s working as before and add tests for it 2022-02-08 16:22:35 +00:00