Sha256: 5b58520e215377a623c63f9a64cad2424be059312edb3476124c941371029508

Contents?: true

Size: 186 Bytes

Versions: 1

Compression:

Stored size: 186 Bytes

Contents

require 'spec_helper'

describe Array do
  describe "#to_hash" do
    it "should return new hash" do
      [1, 2, 3].to_hash([:a, :b, :c]).should == {a: 1, b: 2, c: 3}
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
brainz-0.1.3 spec/ext/array_spec.rb