Skip to content

Commit 7c8139f

Browse files
herwinweregon
authored andcommitted
Remove guards for Ruby version 2.7.2 and 2.7.3
Since those are no longer supported.
1 parent f1b442e commit 7c8139f

File tree

4 files changed

+29
-37
lines changed

4 files changed

+29
-37
lines changed

core/method/super_method_spec.rb

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -55,12 +55,10 @@ def overridden; end
5555
end
5656
end
5757

58-
ruby_version_is "2.7.3" do
59-
context "after aliasing an inherited method" do
60-
it "returns the expected super_method" do
61-
method = MethodSpecs::InheritedMethods::C.new.method(:meow)
62-
method.super_method.owner.should == MethodSpecs::InheritedMethods::A
63-
end
58+
context "after aliasing an inherited method" do
59+
it "returns the expected super_method" do
60+
method = MethodSpecs::InheritedMethods::C.new.method(:meow)
61+
method.super_method.owner.should == MethodSpecs::InheritedMethods::A
6462
end
6563
end
6664
end

core/unboundmethod/super_method_spec.rb

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -40,12 +40,10 @@
4040
end
4141
end
4242

43-
ruby_version_is "2.7.3" do
44-
context "after aliasing an inherited method" do
45-
it "returns the expected super_method" do
46-
method = MethodSpecs::InheritedMethods::C.instance_method(:meow)
47-
method.super_method.owner.should == MethodSpecs::InheritedMethods::A
48-
end
43+
context "after aliasing an inherited method" do
44+
it "returns the expected super_method" do
45+
method = MethodSpecs::InheritedMethods::C.instance_method(:meow)
46+
method.super_method.owner.should == MethodSpecs::InheritedMethods::A
4947
end
5048
end
5149
end

core/warning/element_reference_spec.rb

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
11
require_relative '../../spec_helper'
22

33
describe "Warning.[]" do
4-
ruby_version_is '2.7.2' do
5-
it "returns default values for categories :deprecated and :experimental" do
6-
ruby_exe('p [Warning[:deprecated], Warning[:experimental]]').chomp.should == "[false, true]"
7-
ruby_exe('p [Warning[:deprecated], Warning[:experimental]]', options: "-w").chomp.should == "[true, true]"
8-
end
4+
it "returns default values for categories :deprecated and :experimental" do
5+
ruby_exe('p [Warning[:deprecated], Warning[:experimental]]').chomp.should == "[false, true]"
6+
ruby_exe('p [Warning[:deprecated], Warning[:experimental]]', options: "-w").chomp.should == "[true, true]"
97
end
108

119
ruby_version_is '3.3' do

language/delegation_spec.rb

Lines changed: 18 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -38,28 +38,26 @@ def delegate(...)
3838
end
3939
end
4040

41-
ruby_version_is "2.7.3" do
42-
describe "delegation with def(x, ...)" do
43-
it "delegates rest and kwargs" do
44-
a = Class.new(DelegationSpecs::Target)
45-
a.class_eval(<<-RUBY)
46-
def delegate(x, ...)
47-
target(...)
48-
end
49-
RUBY
41+
describe "delegation with def(x, ...)" do
42+
it "delegates rest and kwargs" do
43+
a = Class.new(DelegationSpecs::Target)
44+
a.class_eval(<<-RUBY)
45+
def delegate(x, ...)
46+
target(...)
47+
end
48+
RUBY
5049

51-
a.new.delegate(0, 1, b: 2).should == [[1], {b: 2}]
52-
end
50+
a.new.delegate(0, 1, b: 2).should == [[1], {b: 2}]
51+
end
5352

54-
it "delegates block" do
55-
a = Class.new(DelegationSpecs::Target)
56-
a.class_eval(<<-RUBY)
57-
def delegate_block(x, ...)
58-
target_block(...)
59-
end
60-
RUBY
53+
it "delegates block" do
54+
a = Class.new(DelegationSpecs::Target)
55+
a.class_eval(<<-RUBY)
56+
def delegate_block(x, ...)
57+
target_block(...)
58+
end
59+
RUBY
6160

62-
a.new.delegate_block(0, 1, b: 2) { |x| x }.should == [{b: 2}, [1]]
63-
end
61+
a.new.delegate_block(0, 1, b: 2) { |x| x }.should == [{b: 2}, [1]]
6462
end
6563
end

0 commit comments

Comments
 (0)