Sha256: f2c10081f2b8ab629c960aefde0d943dded015f6c916da65cc973ddc289655c7
Contents?: true
Size: 476 Bytes
Versions: 52
Compression:
Stored size: 476 Bytes
Contents
require File.expand_path('../../../spec_helper', __FILE__) require File.expand_path('../fixtures/classes', __FILE__) 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
52 entries across 52 versions & 2 rubygems