summaryrefslogtreecommitdiff
path: root/spec/ruby/core/method/shared
diff options
context:
space:
mode:
Diffstat (limited to 'spec/ruby/core/method/shared')
-rw-r--r--spec/ruby/core/method/shared/to_s.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/ruby/core/method/shared/to_s.rb b/spec/ruby/core/method/shared/to_s.rb
index 7666322936..0c0edc2f8c 100644
--- a/spec/ruby/core/method/shared/to_s.rb
+++ b/spec/ruby/core/method/shared/to_s.rb
@@ -32,7 +32,7 @@ describe :method_to_s, shared: true do
@string.should =~ /MethodSpecs::MySub/
end
- ruby_version_is '2.8' do
+ ruby_version_is '3.0' do
it "returns a String containing the Module containing the method if object has a singleton class but method is not defined in the singleton class" do
obj = MethodSpecs::MySub.new
obj.singleton_class