Sha256: 80ec60254c77533d2d27fefa65c923a461f2f2fb6a057c62d6116c2bbde10e36
Contents?: true
Size: 526 Bytes
Versions: 13
Compression:
Stored size: 526 Bytes
Contents
require 'spec_helper' require 'mercury/utils' Utils = 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
13 entries across 13 versions & 1 rubygems