Sha256: ecd313fdf242bcc60a0541de29e36a87b9f0e21ef9d79effcc72f8bd1c1f0884

Contents?: true

Size: 449 Bytes

Versions: 135

Compression:

Stored size: 449 Bytes

Contents

describe :hash_value_p, :shared => true do
  it "returns true if the value exists in the hash" do
    new_hash(:a => :b).send(@method, :a).should == false
    new_hash(1 => 2).send(@method, 2).should == true
    h = new_hash 5
    h.send(@method, 5).should == false
    h = new_hash { 5 }
    h.send(@method, 5).should == false
  end

  it "uses == semantics for comparing values" do
    new_hash(5 => 2.0).send(@method, 2).should == true
  end
end

Version data entries

135 entries across 135 versions & 2 rubygems

Version Path
rhodes-7.6.0 spec/framework_spec/app/spec/core/hash/shared/value.rb
rhodes-7.5.1 spec/framework_spec/app/spec/core/hash/shared/value.rb
rhodes-7.4.1 spec/framework_spec/app/spec/core/hash/shared/value.rb
rhodes-7.1.17 spec/framework_spec/app/spec/core/hash/shared/value.rb
rhodes-6.2.0 spec/framework_spec/app/spec/core/hash/shared/value.rb
rhodes-6.0.11 spec/framework_spec/app/spec/core/hash/shared/value.rb
rhodes-5.5.18 spec/framework_spec/app/spec/core/hash/shared/value.rb
rhodes-5.5.17 spec/framework_spec/app/spec/core/hash/shared/value.rb
rhodes-5.5.15 spec/framework_spec/app/spec/core/hash/shared/value.rb
rhodes-5.5.0.22 spec/framework_spec/app/spec/core/hash/shared/value.rb
rhodes-5.5.2 spec/framework_spec/app/spec/core/hash/shared/value.rb
rhodes-5.5.0.7 spec/framework_spec/app/spec/core/hash/shared/value.rb
rhodes-5.5.0.3 spec/framework_spec/app/spec/core/hash/shared/value.rb
rhodes-5.5.0 spec/framework_spec/app/spec/core/hash/shared/value.rb
tauplatform-1.0.3 spec/framework_spec/app/spec/core/hash/shared/value.rb
tauplatform-1.0.2 spec/framework_spec/app/spec/core/hash/shared/value.rb
tauplatform-1.0.1 spec/framework_spec/app/spec/core/hash/shared/value.rb
rhodes-3.5.1.12 spec/framework_spec/app/spec/core/hash/shared/value.rb
rhodes-3.3.5 spec/framework_spec/app/spec/core/hash/shared/value.rb
rhodes-3.4.2 spec/framework_spec/app/spec/core/hash/shared/value.rb