summaryrefslogtreecommitdiff
path: root/spec/ruby/core/array/compact_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/ruby/core/array/compact_spec.rb')
-rw-r--r--spec/ruby/core/array/compact_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/ruby/core/array/compact_spec.rb b/spec/ruby/core/array/compact_spec.rb
index 21106d1d6f..fe8b37d86b 100644
--- a/spec/ruby/core/array/compact_spec.rb
+++ b/spec/ruby/core/array/compact_spec.rb
@@ -50,7 +50,7 @@ describe "Array#compact!" do
it "returns self if some nil elements are removed" do
a = ['a', nil, 'b', false, 'c']
- a.compact!.object_id.should == a.object_id
+ a.compact!.should equal a
end
it "returns nil if there are no nil elements to remove" do