Sha256: 1c1484957754c3ab4d2df72a7164f6ffdd936789022e4c69fb5d97c925e5b169
Contents?: true
Size: 643 Bytes
Versions: 2
Compression:
Stored size: 643 Bytes
Contents
require 'spec_helper' describe Hash do context 'select_keys' do it 'debería tomar los values de las keys indicadas' do hash = Hash[1, 2, 3, 4] hash.select_keys(1).should == {1 => 2} hash.select_keys(1, 3).should == {1 => 2, 3 => 4} hash.select_keys(5).should == {} hash.select_keys(5, 3).should == {3 => 4} end end context 'has_entries?' do subject { Hash[1, 2, 3, 4] } it 'debería devolver true cuando self incluye todas las entries del hash parametro' do should have_entries 1 => 2 should have_entries 3 => 4, 1 => 2 should_not have_entries 1 => 3 end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
afipws-1.1.0 | spec/afipws/core_ext/hash_spec.rb |
afipws-1.0.4 | spec/afipws/core_ext/hash_spec.rb |