diff --git a/core/string/reverse_spec.rb b/core/string/reverse_spec.rb index ac38d9bead..b45ff2cf6f 100644 --- a/core/string/reverse_spec.rb +++ b/core/string/reverse_spec.rb @@ -18,7 +18,7 @@ end end - ruby_version_is ''...'3.0.0' do + ruby_version_is ''...'3.0' do it "returns subclass instances when called on a subclass" do StringSpecs::MyString.new("stressed").reverse.should be_an_instance_of(StringSpecs::MyString) StringSpecs::MyString.new("m").reverse.should be_an_instance_of(StringSpecs::MyString) diff --git a/core/string/scrub_spec.rb b/core/string/scrub_spec.rb index df6d42e6e1..4da44a7992 100644 --- a/core/string/scrub_spec.rb +++ b/core/string/scrub_spec.rb @@ -34,7 +34,7 @@ end end - ruby_version_is ''...'3.0.0' do + ruby_version_is ''...'3.0' do it "returns subclass instances when called on a subclass" do StringSpecs::MyString.new("foo").scrub.should be_an_instance_of(StringSpecs::MyString) end diff --git a/core/string/shared/partition.rb b/core/string/shared/partition.rb index 5785443d6f..7dc3d9cc0b 100644 --- a/core/string/shared/partition.rb +++ b/core/string/shared/partition.rb @@ -18,7 +18,7 @@ end end - ruby_version_is ''...'3.0.0' do + ruby_version_is ''...'3.0' do it "returns subclass instances when called on a subclass" do StringSpecs::MyString.new("hello").send(@method, StringSpecs::MyString.new("l")).each do |item| item.should be_an_instance_of(StringSpecs::MyString) diff --git a/core/string/shared/strip.rb b/core/string/shared/strip.rb index caf6275fae..9c232b4694 100644 --- a/core/string/shared/strip.rb +++ b/core/string/shared/strip.rb @@ -10,7 +10,7 @@ end end - ruby_version_is ''...'3.0.0' do + ruby_version_is ''...'3.0' do it "returns subclass instances when called on a subclass" do StringSpecs::MyString.new(" hello ").send(@method).should be_an_instance_of(StringSpecs::MyString) StringSpecs::MyString.new(" ").send(@method).should be_an_instance_of(StringSpecs::MyString)