1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/spec/ruby/library/rbconfig/unicode_emoji_version_spec.rb

23 lines
571 B
Ruby
Raw Normal View History

2019-11-30 15:26:52 -05:00
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