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-3.3.4 spec/framework_spec/app/spec/core/hash/shared/value.rb
rhodes-3.3.3 spec/framework_spec/app/spec/core/hash/shared/value.rb
rhodes-3.3.3.beta.4 spec/framework_spec/app/spec/core/hash/shared/value.rb
rhodes-3.3.3.beta.3 spec/framework_spec/app/spec/core/hash/shared/value.rb
rhodes-3.3.3.beta.2 spec/framework_spec/app/spec/core/hash/shared/value.rb
rhodes-3.3.3.beta.1 spec/framework_spec/app/spec/core/hash/shared/value.rb
rhodes-3.3.2 spec/framework_spec/app/spec/core/hash/shared/value.rb
rhodes-3.3.2.beta.7 spec/framework_spec/app/spec/core/hash/shared/value.rb
rhodes-3.3.2.beta.6 spec/framework_spec/app/spec/core/hash/shared/value.rb
rhodes-3.3.2.beta.5 spec/framework_spec/app/spec/core/hash/shared/value.rb
rhodes-3.3.2.beta.4 spec/framework_spec/app/spec/core/hash/shared/value.rb
rhodes-3.3.2.beta.3 spec/framework_spec/app/spec/core/hash/shared/value.rb
rhodes-3.3.2.beta.2 spec/framework_spec/app/spec/core/hash/shared/value.rb
rhodes-3.3.2.beta.1 spec/framework_spec/app/spec/core/hash/shared/value.rb
rhodes-3.3.1 spec/framework_spec/app/spec/core/hash/shared/value.rb
rhodes-3.3.0 spec/framework_spec/app/spec/core/hash/shared/value.rb
rhodes-3.3.0.beta.3 spec/framework_spec/app/spec/core/hash/shared/value.rb
rhodes-3.3.0.beta.2 spec/framework_spec/app/spec/core/hash/shared/value.rb
rhodes-3.3.0.beta.1 spec/framework_spec/app/spec/core/hash/shared/value.rb
rhodes-3.2.3 spec/framework_spec/app/spec/core/hash/shared/value.rb