aboutsummaryrefslogtreecommitdiffstats
path: root/spec
diff options
context:
space:
mode:
authorMartin Dürst <duerst@it.aoyama.ac.jp>2021-07-04 20:56:13 +0900
committerMartin Dürst <duerst@it.aoyama.ac.jp>2021-07-08 14:45:03 +0900
commit146a943d9aabb9dda3c5fa1fc3d493c1df969184 (patch)
tree91d49a68bee3b67622c33b169c10030c0835f15f /spec
parent323ff38c04d15c3efe5eed497620d9bf242817e6 (diff)
downloadruby-146a943d9aabb9dda3c5fa1fc3d493c1df969184.tar.gz
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.
Diffstat (limited to 'spec')
-rw-r--r--spec/ruby/library/rbconfig/unicode_emoji_version_spec.rb4
-rw-r--r--spec/ruby/library/rbconfig/unicode_version_spec.rb2
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