Extract #all_emoji? to a Rails ext

This commit is contained in:
Stanko K.R.
2025-08-11 17:33:24 +02:00
parent 67c9bdc3d9
commit c95e8678a9
4 changed files with 19 additions and 6 deletions
+11
View File
@@ -0,0 +1,11 @@
require "test_helper"
class StringTest < ActiveSupport::TestCase
test "#all_emoji?" do
assert "😊".all_emoji?
assert "😊😊😊".all_emoji?
assert_not "Hello 😊".all_emoji?
assert_not "Hello".all_emoji?
end
end