Sha256: 4897fc85282a84ccfc57d2e88de42c75be10a5681ec4ebeba5ee271d1324df77

Contents?: true

Size: 196 Bytes

Versions: 33

Compression:

Stored size: 196 Bytes

Contents

require 'spec_helper'

describe Hash do
  it 'should return a hash without the speicified keys' do
    a = {one: 1, two: 2, three: 3}

    expect(a.without(:one, :three)).to eq({two: 2})
  end
end

Version data entries

33 entries across 33 versions & 1 rubygems

Version Path
volt-0.9.7.pre8 spec/extra_core/hash_spec.rb
volt-0.9.7.pre7 spec/extra_core/hash_spec.rb
volt-0.9.7.pre6 spec/extra_core/hash_spec.rb
volt-0.9.7.pre5 spec/extra_core/hash_spec.rb
volt-0.9.7.pre3 spec/extra_core/hash_spec.rb
volt-0.9.7.pre2 spec/extra_core/hash_spec.rb
volt-0.9.6 spec/extra_core/hash_spec.rb
volt-0.9.6.pre3 spec/extra_core/hash_spec.rb
volt-0.9.6.pre2 spec/extra_core/hash_spec.rb
volt-0.9.6.pre1 spec/extra_core/hash_spec.rb
volt-0.9.5 spec/extra_core/hash_spec.rb
volt-0.9.5.pre12 spec/extra_core/hash_spec.rb
volt-0.9.5.pre11 spec/extra_core/hash_spec.rb
volt-0.9.5.pre9 spec/extra_core/hash_spec.rb
volt-0.9.5.pre8 spec/extra_core/hash_spec.rb
volt-0.9.5.pre7 spec/extra_core/hash_spec.rb
volt-0.9.5.pre6 spec/extra_core/hash_spec.rb
volt-0.9.5.pre5 spec/extra_core/hash_spec.rb
volt-0.9.5.pre4 spec/extra_core/hash_spec.rb
volt-0.9.5.pre3 spec/extra_core/hash_spec.rb