From 146a943d9aabb9dda3c5fa1fc3d493c1df969184 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20D=C3=BCrst?= Date: Sun, 4 Jul 2021 20:56:13 +0900 Subject: [PATCH] Fix ruby_version guards in Unicode/Emoji version specs Correct version guards in ruby_version in Unicode/Emoji version specs to correctly use exclusive range endings. --- spec/ruby/library/rbconfig/unicode_emoji_version_spec.rb | 4 ++-- spec/ruby/library/rbconfig/unicode_version_spec.rb | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/spec/ruby/library/rbconfig/unicode_emoji_version_spec.rb b/spec/ruby/library/rbconfig/unicode_emoji_version_spec.rb index 2e713ae878..80ba831fd5 100644 --- a/spec/ruby/library/rbconfig/unicode_emoji_version_spec.rb +++ b/spec/ruby/library/rbconfig/unicode_emoji_version_spec.rb @@ -14,8 +14,8 @@ describe "RbConfig::CONFIG['UNICODE_EMOJI_VERSION']" do end end - ruby_version_is "2.7"..."3.0" do - it "is 12.1 for Ruby 2.7" do + ruby_version_is "2.7"..."3.1" do + it "is 12.1 for Ruby 2.7 and 3.0" do RbConfig::CONFIG['UNICODE_EMOJI_VERSION'].should == "12.1" end end diff --git a/spec/ruby/library/rbconfig/unicode_version_spec.rb b/spec/ruby/library/rbconfig/unicode_version_spec.rb index 0c1c9433e7..a6dc6478ff 100644 --- a/spec/ruby/library/rbconfig/unicode_version_spec.rb +++ b/spec/ruby/library/rbconfig/unicode_version_spec.rb @@ -20,7 +20,7 @@ describe "RbConfig::CONFIG['UNICODE_VERSION']" do end end - ruby_version_is "2.6.3"..."3.0" do + ruby_version_is "2.6.3"..."3.1" do it "is 12.1.0 for Ruby 2.6.3+, Ruby 2.7, and Ruby 3.0" do RbConfig::CONFIG['UNICODE_VERSION'].should == "12.1.0" end