Sha256: e6e14d19fe0b2d487d3193b41613ae43eec60b2fe5517414b581408ecce268ef

Contents?: true

Size: 326 Bytes

Versions: 13

Compression:

Stored size: 326 Bytes

Contents

require File.join(File.dirname(__FILE__), %w[ .. .. spec_helper])

describe 'array extentions' do
  
  it 'should turn an array to a nil valued hash' do
    array = %w[key1 key2]
    hash = array.to_hash
    hash.has_key?(:key1).should be_true
    hash.has_key?(:key2).should be_true
    hash[:key1].should be_nil
  end
  
end

Version data entries

13 entries across 13 versions & 4 rubygems

Version Path
pjdavis-roart-0.1.0 spec/roart/core/array_spec.rb
pjdavis-roart-0.1.1 spec/roart/core/array_spec.rb
pjdavis-roart-0.1.2 spec/roart/core/array_spec.rb
pjdavis-roart-0.1.3 spec/roart/core/array_spec.rb
pjdavis-roart-0.1.4 spec/roart/core/array_spec.rb
axtro-roart-0.1.8 spec/roart/core/array_spec.rb
roart-0.1.8 spec/roart/core/array_spec.rb
roart-0.1.7 spec/roart/core/array_spec.rb
roart-0.1.6 spec/roart/core/array_spec.rb
roart-0.1.5.1 spec/roart/core/array_spec.rb
roart-0.1.5 spec/roart/core/array_spec.rb
threetee-roart-0.1.4 spec/roart/core/array_spec.rb
roart-0.1.4 spec/roart/core/array_spec.rb