Sha256: da992e7c23e4f6f4edca0ef3268b96b21cd9deee868e2a6e7adcaebbc89ecb41

Contents?: true

Size: 536 Bytes

Versions: 83

Compression:

Stored size: 536 Bytes

Contents

require File.dirname(File.join(__rhoGetCurrentDir(), __FILE__)) + '/../../spec_helper'
require File.dirname(File.join(__rhoGetCurrentDir(), __FILE__)) + '/fixtures/classes'

describe "Kernel#eql?" do 
  it "returns true if obj and anObject are the same object." do 
    o1 = mock('o1')
    o2 = mock('o2')
    o1.should eql(o1)
    o2.should eql(o2)
    o1.should_not eql(o2)
  end
  
  it "returns true if obj and anObject have the same value." do
    :hola.should_not eql(1)
    1.should eql(1)
    :hola.should eql(:hola)
  end
end

Version data entries

83 entries across 83 versions & 1 rubygems

Version Path
rhodes-1.4.2 spec/framework_spec/app/spec/core/kernel/eql_spec.rb
rhodes-1.4.1 spec/framework_spec/app/spec/core/kernel/eql_spec.rb
rhodes-1.4.0 spec/framework_spec/app/spec/core/kernel/eql_spec.rb