From 1b571d0abf6070673320b11a30769bbe74d12e39 Mon Sep 17 00:00:00 2001 From: Benoit Daloze Date: Sun, 13 Mar 2022 13:18:56 +0100 Subject: Fix guards for unicode versions specs --- spec/ruby/library/rbconfig/unicode_emoji_version_spec.rb | 10 +++++----- spec/ruby/library/rbconfig/unicode_version_spec.rb | 10 +++++----- 2 files changed, 10 insertions(+), 10 deletions(-) (limited to 'spec') diff --git a/spec/ruby/library/rbconfig/unicode_emoji_version_spec.rb b/spec/ruby/library/rbconfig/unicode_emoji_version_spec.rb index c5eff3fe11..c424ba5033 100644 --- a/spec/ruby/library/rbconfig/unicode_emoji_version_spec.rb +++ b/spec/ruby/library/rbconfig/unicode_emoji_version_spec.rb @@ -20,11 +20,11 @@ describe "RbConfig::CONFIG['UNICODE_EMOJI_VERSION']" do end end -# ruby_version_is "3.1" 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 ruby_version_is "3.2" do it "is 14.0 for Ruby 3.2" do diff --git a/spec/ruby/library/rbconfig/unicode_version_spec.rb b/spec/ruby/library/rbconfig/unicode_version_spec.rb index 238ee26b78..6424986a97 100644 --- a/spec/ruby/library/rbconfig/unicode_version_spec.rb +++ b/spec/ruby/library/rbconfig/unicode_version_spec.rb @@ -20,11 +20,11 @@ describe "RbConfig::CONFIG['UNICODE_VERSION']" do end end -# ruby_version_is "3.1" 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 ruby_version_is "3.2" do it "is 14.0.0 for Ruby 3.2" do -- cgit v1.2.3