let(:stringified_array){[{'test'=>1}]}let(:stringified_array_with_date){[{'test_date'=>'2016-04-06 06:17:44 +0200'}]}describe'.deep_symbolize_array!'doit'symbolizes keys'doexpect{described_class.deep_symbolize_array!(stringified_array)}.tochange{stringified_array.first.keys.first}.from('test').to(:test)endenddescribe'.deep_symbolize_array_with_date!'doit'symbolizes keys'doexpect{described_class.deep_symbolize_array_with_date!(stringified_array_with_date)}.tochange{stringified_array_with_date.first.keys.first}.from('test_date').to(:test_date)endit'transforms date strings into Time objects'doexpect{described_class.deep_symbolize_array_with_date!(stringified_array_with_date)}.tochange{stringified_array_with_date.first.values.first.class}.from(String).to(ActiveSupport::TimeWithZone)endendend