spec/integration/array_spec.rb in transproc-0.1.3 vs spec/integration/array_spec.rb in transproc-0.2.0
- old
+ new
@@ -54,11 +54,11 @@
it 'returns a array new with deeply wrapped hashes' do
wrap =
t(
:map_array,
- t(:nest, :user, [:name, :title]),
- t(:map_key, :user, t(:nest, :task, [:title]))
+ t(:nest, :user, [:name, :title]) +
+ t(:map_value, :user, t(:nest, :task, [:title]))
)
input = [{ name: 'Jane', title: 'One' }]
output = [{ user: { name: 'Jane', task: { title: 'One' } } }]