summaryrefslogtreecommitdiff
path: root/spec/ruby/library/rbconfig/unicode_emoji_version_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/ruby/library/rbconfig/unicode_emoji_version_spec.rb')
-rw-r--r--spec/ruby/library/rbconfig/unicode_emoji_version_spec.rb22
1 files changed, 22 insertions, 0 deletions
diff --git a/spec/ruby/library/rbconfig/unicode_emoji_version_spec.rb b/spec/ruby/library/rbconfig/unicode_emoji_version_spec.rb
new file mode 100644
index 0000000000..d3df8b7313
--- /dev/null
+++ b/spec/ruby/library/rbconfig/unicode_emoji_version_spec.rb
@@ -0,0 +1,22 @@
+require_relative '../../spec_helper'
+require 'rbconfig'
+
+describe "RbConfig::CONFIG['UNICODE_EMOJI_VERSION']" do
+ ruby_version_is "2.6"..."2.6.2" do
+ it "is 11.0 for Ruby 2.6.0 and 2.6.1" do
+ RbConfig::CONFIG['UNICODE_EMOJI_VERSION'].should == "11.0"
+ end
+ end
+
+ ruby_version_is "2.6.2"..."2.7" do
+ it "is 12.0 for Ruby 2.6.2+" do
+ RbConfig::CONFIG['UNICODE_EMOJI_VERSION'].should == "12.0"
+ end
+ end
+
+ ruby_version_is "2.7" do
+ it "is 12.1 for Ruby 2.7" do
+ RbConfig::CONFIG['UNICODE_EMOJI_VERSION'].should == "12.1"
+ end
+ end
+end