Sha256: 3faad583a43514777dd8c458bc8ee8f258681119ef0da4d4f7b9af188d6c36f4
Contents?: true
Size: 227 Bytes
Versions: 2
Compression:
Stored size: 227 Bytes
Contents
require 'spec_helper' describe 'Array#init' do it 'returns an array without the last element' do expect([1, 2, 3].init).to eq([1, 2]) end it 'returns [] for empty lists' do expect([].init).to be_empty end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
powerpack-0.0.6 | spec/powerpack/array/init_spec.rb |
powerpack-0.0.5 | spec/powerpack/array/init_spec.rb |