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

Version Path
jactive_support-2.1.2 spec/java_ext/map/shared/values_at.rb
jactive_support-3.0.0 spec/java_ext/map/shared/values_at.rb
jactive_support-3.0.0.pre2 spec/java_ext/map/shared/values_at.rb
jactive_support-3.0.0.pre1 spec/java_ext/map/shared/values_at.rb
jactive_support-2.1.1 spec/java_ext/map/shared/values_at.rb
jactive_support-2.1.0 spec/java_ext/map/shared/values_at.rb
jactive_support-2.0.0 spec/java_ext/map/shared/values_at.rb
jactive_support-1.0.2 spec/java_ext/map/shared/values_at.rb
jactive_support-1.0.1-universal-java-1.6 spec/java_ext/map/shared/values_at.rb
jactive_support-1.0.0-universal-java-1.6 spec/java_ext/map/shared/values_at.rb