summaryrefslogtreecommitdiff
path: root/spec/ruby/core/method/shared/dup.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/ruby/core/method/shared/dup.rb')
-rw-r--r--spec/ruby/core/method/shared/dup.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/ruby/core/method/shared/dup.rb b/spec/ruby/core/method/shared/dup.rb
index 1a10b90689..eee790890a 100644
--- a/spec/ruby/core/method/shared/dup.rb
+++ b/spec/ruby/core/method/shared/dup.rb
@@ -4,7 +4,7 @@ describe :method_dup, shared: true do
b = a.send(@method)
a.should == b
- a.should_not equal(b)
+ a.should_not.equal?(b)
end
ruby_version_is "3.4" do
@@ -16,7 +16,7 @@ describe :method_dup, shared: true do
end
it "copies the finalizer" do
- code = <<-RUBY
+ code = <<-'RUBY'
obj = Object.new.method(:method)
ObjectSpace.define_finalizer(obj, Proc.new { STDOUT.write "finalized\n" })