Skip to content

Commit a7fec4d

Browse files
committed
Update version guards in ruby/spec
1 parent c970d29 commit a7fec4d

3 files changed

Lines changed: 8 additions & 8 deletions

File tree

spec/ruby/core/method/source_location_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,10 +109,10 @@ def f
109109
eval('def self.m; end', nil, "foo", 100)
110110
end
111111
location = c.method(:m).source_location
112-
ruby_version_is(""..."4.0") do
112+
ruby_version_is(""..."4.1") do
113113
location.should == ["foo", 100]
114114
end
115-
ruby_version_is("4.0") do
115+
ruby_version_is("4.1") do
116116
location.should == ["foo", 100, 0, 100, 15]
117117
end
118118
end

spec/ruby/core/proc/source_location_spec.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,12 +53,12 @@
5353
end
5454

5555
it "works even if the proc was created on the same line" do
56-
ruby_version_is(""..."4.0") do
56+
ruby_version_is(""..."4.1") do
5757
proc { true }.source_location.should == [__FILE__, __LINE__]
5858
Proc.new { true }.source_location.should == [__FILE__, __LINE__]
5959
-> { true }.source_location.should == [__FILE__, __LINE__]
6060
end
61-
ruby_version_is("4.0") do
61+
ruby_version_is("4.1") do
6262
proc { true }.source_location.should == [__FILE__, __LINE__, 11, __LINE__, 19]
6363
Proc.new { true }.source_location.should == [__FILE__, __LINE__, 15, __LINE__, 23]
6464
-> { true }.source_location.should == [__FILE__, __LINE__, 6, __LINE__, 17]
@@ -94,10 +94,10 @@
9494
it "works for eval with a given line" do
9595
proc = eval('-> {}', nil, "foo", 100)
9696
location = proc.source_location
97-
ruby_version_is(""..."4.0") do
97+
ruby_version_is(""..."4.1") do
9898
location.should == ["foo", 100]
9999
end
100-
ruby_version_is("4.0") do
100+
ruby_version_is("4.1") do
101101
location.should == ["foo", 100, 0, 100, 5]
102102
end
103103
end

spec/ruby/core/unboundmethod/source_location_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,10 +55,10 @@
5555
eval('def m; end', nil, "foo", 100)
5656
end
5757
location = c.instance_method(:m).source_location
58-
ruby_version_is(""..."4.0") do
58+
ruby_version_is(""..."4.1") do
5959
location.should == ["foo", 100]
6060
end
61-
ruby_version_is("4.0") do
61+
ruby_version_is("4.1") do
6262
location.should == ["foo", 100, 0, 100, 10]
6363
end
6464
end

0 commit comments

Comments
 (0)