Sha256: e5cf194b8371b367d4cd9593577f687a8f1d41095dddfc688cefd93fce748130
Contents?: true
Size: 199 Bytes
Versions: 25
Compression:
Stored size: 199 Bytes
Contents
require 'spec_helper' describe 'Enumerable#drop_last_while' do it 'drops the last elements while a pred is true' do expect([1, 2, 3, 4, 6].drop_last_while(&:even?)).to eq([1, 2, 3]) end end
Version data entries
25 entries across 22 versions & 6 rubygems