Sha256: 010a7ae15d03a61d7a2f17e176e839862f64b3c9a9e77c064710d6dc123855ad

Contents?: true

Size: 242 Bytes

Versions: 4

Compression:

Stored size: 242 Bytes

Contents

describe DaruLite::ArrayHelper do
  context '#recode_repeated' do
    let(:source) { [1,'a',1,'a','b',:c,2] }
    subject { described_class.recode_repeated(source) }

    it { is_expected.to eq ['1_1','a_1', '1_2','a_2','b',:c,2] }
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
daru_lite-0.1.3 spec/helpers_spec.rb
daru_lite-0.1.2 spec/helpers_spec.rb
daru_lite-0.1.1 spec/helpers_spec.rb
daru_lite-0.1 spec/helpers_spec.rb