spec/integration/hash_spec.rb in transproc-0.1.1 vs spec/integration/hash_spec.rb in transproc-0.1.2
- old
+ new
@@ -48,14 +48,14 @@
nest[input]
expect(input).to eql(output)
end
- it 'returns new hash with nil nested under a new key when nest-keys are missing' do
+ it 'returns new hash with an empty hash under a new key when nest-keys are missing' do
nest = Transproc(:nest!, :baz, ['foo'])
input = { 'bar' => 'foo' }
- output = { 'bar' => 'foo', baz: nil }
+ output = { 'bar' => 'foo', baz: {} }
nest[input]
expect(input).to eql(output)
end