1 require File.dirname(__FILE__) + '/../../spec_helper'
2 require File.dirname(__FILE__) + '/fixtures/classes'
4 describe "Kernel#equal?" do
5 it "returns true only if obj and other are the same object" do
8 (o1.equal? o1).should == true
9 (o2.equal? o2).should == true
10 (o1.equal? o2).should== false
11 (nil.equal? nil).should == true
12 (o1.equal? nil).should== false
13 (nil.equal? o2).should== false
16 it "returns true if obj and anObject have the same value." do
19 (:hola.equal? o1).should == false
20 (1.equal? o1).should == true
21 (:hola.equal? o2).should == true