Skip to content

Commit

Permalink
Remove 3.1 version as a starting one in version guards
Browse files Browse the repository at this point in the history
  • Loading branch information
andrykonchin committed Feb 4, 2025
1 parent fbbccf4 commit 24ff231
Show file tree
Hide file tree
Showing 11 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion core/method/private_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
require_relative 'fixtures/classes'

describe "Method#private?" do
ruby_version_is "3.1"..."3.2" do
ruby_version_is ""..."3.2" do
it "returns false when the method is public" do
obj = MethodSpecs::Methods.new
obj.method(:my_public_method).private?.should == false
Expand Down
2 changes: 1 addition & 1 deletion core/method/protected_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
require_relative 'fixtures/classes'

describe "Method#protected?" do
ruby_version_is "3.1"..."3.2" do
ruby_version_is ""..."3.2" do
it "returns false when the method is public" do
obj = MethodSpecs::Methods.new
obj.method(:my_public_method).protected?.should == false
Expand Down
2 changes: 1 addition & 1 deletion core/method/public_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
require_relative 'fixtures/classes'

describe "Method#public?" do
ruby_version_is "3.1"..."3.2" do
ruby_version_is ""..."3.2" do
it "returns true when the method is public" do
obj = MethodSpecs::Methods.new
obj.method(:my_public_method).public?.should == true
Expand Down
2 changes: 1 addition & 1 deletion core/refinement/include_spec.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
require_relative '../../spec_helper'

describe "Refinement#include" do
ruby_version_is "3.1"..."3.2" do
ruby_version_is ""..."3.2" do
it "warns about deprecation" do
Module.new do
refine String do
Expand Down
2 changes: 1 addition & 1 deletion core/refinement/prepend_spec.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
require_relative '../../spec_helper'

describe "Refinement#prepend" do
ruby_version_is "3.1"..."3.2" do
ruby_version_is ""..."3.2" do
it "warns about deprecation" do
Module.new do
refine String do
Expand Down
2 changes: 1 addition & 1 deletion core/struct/initialize_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
StructClasses::SubclassX.new(:y).new.key.should == :value
end

ruby_version_is "3.1"..."3.2" do
ruby_version_is ""..."3.2" do
it "warns about passing only keyword arguments" do
-> {
StructClasses::Ruby.new(version: "3.1", platform: "OS")
Expand Down
2 changes: 1 addition & 1 deletion core/unboundmethod/private_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
require_relative 'fixtures/classes'

describe "UnboundMethod#private?" do
ruby_version_is "3.1"..."3.2" do
ruby_version_is ""..."3.2" do
it "returns false when the method is public" do
obj = UnboundMethodSpecs::Methods.new
obj.method(:my_public_method).unbind.private?.should == false
Expand Down
2 changes: 1 addition & 1 deletion core/unboundmethod/protected_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
require_relative 'fixtures/classes'

describe "UnboundMethod#protected?" do
ruby_version_is "3.1"..."3.2" do
ruby_version_is ""..."3.2" do
it "returns false when the method is public" do
obj = UnboundMethodSpecs::Methods.new
obj.method(:my_public_method).unbind.protected?.should == false
Expand Down
2 changes: 1 addition & 1 deletion core/unboundmethod/public_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
require_relative 'fixtures/classes'

describe "UnboundMethod#public?" do
ruby_version_is "3.1"..."3.2" do
ruby_version_is ""..."3.2" do
it "returns true when the method is public" do
obj = UnboundMethodSpecs::Methods.new
obj.method(:my_public_method).unbind.public?.should == true
Expand Down
2 changes: 1 addition & 1 deletion library/rbconfig/unicode_emoji_version_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
require 'rbconfig'

describe "RbConfig::CONFIG['UNICODE_EMOJI_VERSION']" do
ruby_version_is "3.1"..."3.2" do
ruby_version_is ""..."3.2" do
it "is 13.1" do
RbConfig::CONFIG['UNICODE_EMOJI_VERSION'].should == "13.1"
end
Expand Down
2 changes: 1 addition & 1 deletion library/rbconfig/unicode_version_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
require 'rbconfig'

describe "RbConfig::CONFIG['UNICODE_VERSION']" do
ruby_version_is "3.1"..."3.2" do
ruby_version_is ""..."3.2" do
it "is 13.0.0" do
RbConfig::CONFIG['UNICODE_VERSION'].should == "13.0.0"
end
Expand Down

0 comments on commit 24ff231

Please sign in to comment.