spec/complex/reduce_spec.rb in lhs-9.0.2 vs spec/complex/reduce_spec.rb in lhs-9.0.3

- old
+ new

@@ -13,9 +13,15 @@ expect { LHS::Complex.reduce([{ entry: true }, { entry: :content }]) }.to raise_error(ArgumentError) end + it 'does not fail trying to merge primitive types when they are the same' do + expect { + LHS::Complex.reduce([{ entry: true }, { entry: true }]) + }.not_to raise_error + end + context 'first level' do context 'reduces symbols into/with X' do it 'reduces symbols into hash' do expect(LHS::Complex.reduce([ { entries: :contract },