spec/unicode_version_spec.rb in unicode-version-1.0.0 vs spec/unicode_version_spec.rb in unicode-version-1.1.0
- old
+ new
@@ -24,13 +24,15 @@
end
describe ".emoji_version" do
it "returns current Ruby's Emoji version when no Ruby version given" do
RUBY_VERSION, original_ruby_version = "2.7.0", RUBY_VERSION
+ Unicode::Version::RB_CONFIG_EMOJI_AVAILABLE, original_available = "2.8.0", Unicode::Version::RB_CONFIG_EMOJI_AVAILABLE
assert_equal "12.1", Unicode::Version.emoji_version
RUBY_VERSION = original_ruby_version
+ Unicode::Version::RB_CONFIG_EMOJI_AVAILABLE = original_available
end
it "returns Emoji version of given Ruby" do
assert_equal "12.0", Unicode::Version.emoji_version("2.6.2")
assert_equal "5.0", Unicode::Version.emoji_version(2.5)