spec/complex/reduce_spec.rb in lhs-15.3.1 vs spec/complex/reduce_spec.rb in lhs-15.3.2
- old
+ new
@@ -169,19 +169,19 @@
entries: { content_ads: :owner },
products: [{ content_ads: [:address, :owner], price: :region }, :image]
)
end
- it 'reduces another complex multi-level example' do
+ it 'reduces another complex multi-level example (single plus array)' do
expect(LHS::Complex.reduce([
{ entries: :products },
{ entries: [:customer, :contracts] }
])).to eq(
entries: [:products, :customer, :contracts]
)
end
- it 'reduces another complex multi-level example' do
+ it 'reduces another complex multi-level example (single hash plus array)' do
expect(LHS::Complex.reduce([
{ entries: { customer: :contracts } },
{ entries: [:customer, :content_ads] }
])).to eq(
entries: [{ customer: :contracts }, :content_ads]