Sha256: 91594d0b685a0098022b8c3f2a0909eaee22f8538c71a246ebe5fe368bfad746

Contents?: true

Size: 205 Bytes

Versions: 3

Compression:

Stored size: 205 Bytes

Contents

require 'spec_helper'

describe Hash do
  it 'can symbolize hash keys' do
    hash = {'foo' => 'bar', 'baz' => 'qux'}

    hash.symbolize_keys!

    hash.should == {:foo => 'bar', :baz => 'qux'}
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
trajectory-0.1.2 spec/unit/core_ext/hash_spec.rb
trajectory-0.1.1 spec/unit/core_ext/hash_spec.rb
trajectory-0.1.0 spec/unit/core_ext/hash_spec.rb