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-2.2.3.beta.1 spec/framework_spec/app/spec/core/hash/shared/value.rb
rhodes-2.2.2 spec/framework_spec/app/spec/core/hash/shared/value.rb
rhodes-2.2.2.beta.1 spec/framework_spec/app/spec/core/hash/shared/value.rb
rhodes-2.2.1 spec/framework_spec/app/spec/core/hash/shared/value.rb
rhodes-2.2.1.beta.2 spec/framework_spec/app/spec/core/hash/shared/value.rb
rhodes-2.2.1.beta.1 spec/framework_spec/app/spec/core/hash/shared/value.rb
rhodes-2.2.0 spec/framework_spec/app/spec/core/hash/shared/value.rb
rhodes-2.2.0.beta.3 spec/framework_spec/app/spec/core/hash/shared/value.rb
rhodes-2.2.0.beta.2 spec/framework_spec/app/spec/core/hash/shared/value.rb
rhodes-2.2.0.beta.1 spec/framework_spec/app/spec/core/hash/shared/value.rb
rhodes-2.1.0 spec/framework_spec/app/spec/core/hash/shared/value.rb
rhodes-2.0.3 spec/framework_spec/app/spec/core/hash/shared/value.rb
rhodes-2.0.2 spec/framework_spec/app/spec/core/hash/shared/value.rb
rhodes-2.0.0 spec/framework_spec/app/spec/core/hash/shared/value.rb
rhodes-2.0.0.rc2 spec/framework_spec/app/spec/core/hash/shared/value.rb
rhodes-2.0.0.rc1 spec/framework_spec/app/spec/core/hash/shared/value.rb
rhodes-2.0.0.beta11 spec/framework_spec/app/spec/core/hash/shared/value.rb
rhodes-2.0.0.beta10 spec/framework_spec/app/spec/core/hash/shared/value.rb
rhodes-2.0.0.beta9 spec/framework_spec/app/spec/core/hash/shared/value.rb
rhodes-2.0.0.beta8 spec/framework_spec/app/spec/core/hash/shared/value.rb