diff --git a/helpers/sql-obfuscation/test/helpers/sql_obfuscation_test.rb b/helpers/sql-obfuscation/test/helpers/sql_obfuscation_test.rb index 9d16e651e..0d1d2918e 100644 --- a/helpers/sql-obfuscation/test/helpers/sql_obfuscation_test.rb +++ b/helpers/sql-obfuscation/test/helpers/sql_obfuscation_test.rb @@ -66,6 +66,14 @@ assert_equal(expected, obfuscate_sql) end end + + describe 'when the sql statement has an emoji' do + let(:sql) { "SELECT * from users where users.id = 1 and users.email = 'test@😄.com'" } + + it 'encodes utf8' do + assert_equal(expected, obfuscate_sql) + end + end end end end