Sha256: cc09cc0ea3aab4ee4a0247ff3a11dc97961d9c104e277e6cb5c3b9302409fd1a

Contents?: true

Size: 353 Bytes

Versions: 3

Compression:

Stored size: 353 Bytes

Contents

require File.dirname(__FILE__) + '/spec_helper.rb'

describe "utility methods" do

  include Blendris::Utils

  it "should pairify an array" do
    pairify(nil).should == []
    pairify([]).should == []
    pairify(1).should == []
    pairify(1, 2).should == [ [1, 2] ]
    pairify(1, 2, 3, [4, 5], 6, 7).should == [ [1, 2], [3, 4], [5, 6] ]
  end

end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
blendris-1.2 spec/utils_spec.rb
blendris-1.1 spec/utils_spec.rb
blendris-1.0 spec/utils_spec.rb