Use an exclusive range for ruby_version_is

This commit is contained in:
Nobuyoshi Nakada 2025-02-21 19:06:27 +09:00
parent 1bc57b5e0e
commit a1bdc36443
No known key found for this signature in database
GPG Key ID: 3582D74E1FEE4465
Notes: git 2025-02-21 11:00:54 +00:00

View File

@ -90,7 +90,7 @@ describe "Numbered parameters" do
proc { _2 }.parameters.should == [[:opt, :_1], [:opt, :_2]]
end
ruby_version_is "".."3.4" do
ruby_version_is ""..."3.5" do
it "affects binding local variables" do
-> { _1; binding.local_variables }.call("a").should == [:_1]
-> { _2; binding.local_variables }.call("a", "b").should == [:_1, :_2]