Skip to content

Commit 34575aa

Browse files
committed
Use .should_not.equal? instead of comparing object_id
1 parent e924640 commit 34575aa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

spec/ruby/core/range/clone_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,14 @@
77
copy.begin.should == 1
88
copy.end.should == 3
99
copy.should_not.exclude_end?
10-
copy.object_id.should_not == original.object_id
10+
copy.should_not.equal? original
1111

1212
original = ("a"..."z")
1313
copy = original.clone
1414
copy.begin.should == "a"
1515
copy.end.should == "z"
1616
copy.should.exclude_end?
17-
copy.object_id.should_not == original.object_id
17+
copy.should_not.equal? original
1818
end
1919

2020
it "maintains the frozen state" do

0 commit comments

Comments
 (0)