spec/pair_spec.rb in totally_lazy-0.0.2 vs spec/pair_spec.rb in totally_lazy-0.0.3
- old
+ new
@@ -20,10 +20,10 @@
it 'should convert to string' do
expect(pair('apples',2).to_s).to eq('{"apples"=>2}')
end
it 'should convert to a sequence of pairs from a map' do
- expect(Pair.from_map({apples:'10'})).to eq(sequence(pair(:apples,'10')))
+ expect(Pair.from_map({apples:'10'}).to_a).to eq(sequence(pair(:apples,'10')).to_a)
end
it 'should convert a pair to a map' do
expect(pair(1,2).to_map).to eq({1=>2})
end
\ No newline at end of file