Sha256: f0b48267a00980ce3d0a4e106bdd717aadcff56dc1081e21b32ad867fbef3ba0
Contents?: true
Size: 628 Bytes
Versions: 7
Compression:
Stored size: 628 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 include 1 => 2 should include 3 => 4, 1 => 2 should_not include 1 => 3 end end end
Version data entries
7 entries across 7 versions & 1 rubygems