Sha256: 05f62be2926d9486d15ea54a12d581486ab936de4509a275ae8e7825a0265339
Contents?: true
Size: 396 Bytes
Versions: 10
Compression:
Stored size: 396 Bytes
Contents
shared_examples_for :hash_values_at do |method| before { @method = method } it "returns an array of values for the given keys" do h = new_hash(:a => 9, :b => 'a', :c => -10, :d => nil) h.send(@method).should be_kind_of(Array) h.send(@method).should == [] h.send(@method, :a, :d, :b).should be_kind_of(Array) h.send(@method, :a, :d, :b).should == [9, nil, 'a'] end end
Version data entries
10 entries across 10 versions & 1 rubygems