From 1f7bd2a1711afd71a8a7c5537c677a95fc8978bd Mon Sep 17 00:00:00 2001 From: Gannon McGibbon Date: Tue, 30 Oct 2018 15:33:47 -0400 Subject: Restore HWIA support to AJ::Arguments.deserialize Restore HashWithIndifferentAccess support to ActiveJob::Arguments.deserialize. --- activejob/test/cases/argument_serialization_test.rb | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'activejob/test') diff --git a/activejob/test/cases/argument_serialization_test.rb b/activejob/test/cases/argument_serialization_test.rb index f07529d743..8b2981926f 100644 --- a/activejob/test/cases/argument_serialization_test.rb +++ b/activejob/test/cases/argument_serialization_test.rb @@ -73,6 +73,7 @@ class ArgumentSerializationTest < ActiveSupport::TestCase string_key = { "a" => 1, "_aj_symbol_keys" => [] } another_string_key = { "a" => 1 } indifferent_access = { "a" => 1, "_aj_hash_with_indifferent_access" => true } + indifferent_access_symbol_key = symbol_key.with_indifferent_access assert_equal( { a: 1 }, @@ -90,6 +91,10 @@ class ArgumentSerializationTest < ActiveSupport::TestCase { "a" => 1 }, ActiveJob::Arguments.deserialize([indifferent_access]).first ) + assert_equal( + { a: 1 }, + ActiveJob::Arguments.deserialize([indifferent_access_symbol_key]).first + ) end test "should maintain hash with indifferent access" do -- cgit v1.2.3