diff options
author | Martin Dürst <duerst@it.aoyama.ac.jp> | 2022-03-14 08:37:53 +0900 |
---|---|---|
committer | Martin Dürst <duerst@it.aoyama.ac.jp> | 2022-03-14 08:39:06 +0900 |
commit | 267f0089d3255c1f06ab5adf9f6c77b1ccfd2771 (patch) | |
tree | 845f8efc24feb13954c3bd35a40b2439946ee171 | |
parent | 9d6cc7e4c096f7c1dc62935af07409027fd4e6f1 (diff) |
clarify meaning of version guards for Unicode version specs [ci skip]
-rw-r--r-- | spec/ruby/library/rbconfig/unicode_emoji_version_spec.rb | 13 | ||||
-rw-r--r-- | spec/ruby/library/rbconfig/unicode_version_spec.rb | 13 |
2 files changed, 14 insertions, 12 deletions
diff --git a/spec/ruby/library/rbconfig/unicode_emoji_version_spec.rb b/spec/ruby/library/rbconfig/unicode_emoji_version_spec.rb index c424ba5033..9b64ea6de2 100644 --- a/spec/ruby/library/rbconfig/unicode_emoji_version_spec.rb +++ b/spec/ruby/library/rbconfig/unicode_emoji_version_spec.rb @@ -20,14 +20,15 @@ describe "RbConfig::CONFIG['UNICODE_EMOJI_VERSION']" do end end - ruby_version_is "3.1"..."3.2" do - it "is 13.1 for Ruby 3.1" do - RbConfig::CONFIG['UNICODE_EMOJI_VERSION'].should == "13.1" - end - end + ruby_version_is "3.1"..."3.2" do + it "is 13.1 for Ruby 3.1" do + RbConfig::CONFIG['UNICODE_EMOJI_VERSION'].should == "13.1" + end + end + # Caution: ruby_version_is means is_or_later ruby_version_is "3.2" do - it "is 14.0 for Ruby 3.2" do + it "is 14.0 for Ruby 3.2 or later" do RbConfig::CONFIG['UNICODE_EMOJI_VERSION'].should == "14.0" end end diff --git a/spec/ruby/library/rbconfig/unicode_version_spec.rb b/spec/ruby/library/rbconfig/unicode_version_spec.rb index 6424986a97..312d3c92d4 100644 --- a/spec/ruby/library/rbconfig/unicode_version_spec.rb +++ b/spec/ruby/library/rbconfig/unicode_version_spec.rb @@ -20,14 +20,15 @@ describe "RbConfig::CONFIG['UNICODE_VERSION']" do end end - ruby_version_is "3.1"..."3.2" do - it "is 13.0.0 for Ruby 3.1" do - RbConfig::CONFIG['UNICODE_VERSION'].should == "13.0.0" - end - end + ruby_version_is "3.1"..."3.2" do + it "is 13.0.0 for Ruby 3.1" do + RbConfig::CONFIG['UNICODE_VERSION'].should == "13.0.0" + end + end + # Caution: ruby_version_is means is_or_later ruby_version_is "3.2" do - it "is 14.0.0 for Ruby 3.2" do + it "is 14.0.0 for Ruby 3.2 or later" do RbConfig::CONFIG['UNICODE_VERSION'].should == "14.0.0" end end |