Sha256: d4ef942a11db49c5633b8d2d71ea267b858f93f1031eb57402fdeba5e19524e8
Contents?: true
Size: 502 Bytes
Versions: 5
Compression:
Stored size: 502 Bytes
Contents
require 'spec_helper' require 'mercury/utils' describe Utils do describe '::unsplat' do it 'allows args to be provided in splatted form' do expect(Utils.unsplat([])).to eql [] expect(Utils.unsplat([1])).to eql [1] expect(Utils.unsplat([1, 2])).to eql [1, 2] end it 'allows args to be provided as an array' do expect(Utils.unsplat([[]])).to eql [] expect(Utils.unsplat([[1]])).to eql [1] expect(Utils.unsplat([[1, 2]])).to eql [1, 2] end end end
Version data entries
5 entries across 5 versions & 1 rubygems