diff options
Diffstat (limited to 'test/cases')
-rw-r--r-- | test/cases/parameters_test.rb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/test/cases/parameters_test.rb b/test/cases/parameters_test.rb index 93b34278a5..737f3c26b7 100644 --- a/test/cases/parameters_test.rb +++ b/test/cases/parameters_test.rb @@ -66,8 +66,12 @@ class ParameterDeserializationTest < ActiveSupport::TestCase assert_equal [ 3, Person.find(5) ], ActiveJob::Arguments.deserialize([ 3, Person.find(5).gid ]) end - test 'should dive deep when desierializing' do + test 'should dive deep when deserialising arrays' do assert_equal [ [ 3, Person.find(5) ] ], ActiveJob::Arguments.deserialize([ [ 3, Person.find(5).gid ] ]) end + test 'should dive deep when deserialising hashes' do + assert_equal [ { "5" => Person.find(5) } ], ActiveJob::Arguments.deserialize([ { "5" => Person.find(5).gid } ]) + end + end |