spec/pair_spec.rb in totally_lazy-0.0.16 vs spec/pair_spec.rb in totally_lazy-0.0.18
- old
+ new
@@ -20,9 +20,10 @@
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_a).to eq(sequence(pair(:apples, '10')).to_a)
+ expect(Pair.from_map({:one => 1, :two => 2}).to_a).to eq(sequence(pair(:one,1),pair(:two,2)).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