Skip to content

Commit

Permalink
Add emoji test case
Browse files Browse the repository at this point in the history
  • Loading branch information
kaylareopelle committed Jul 28, 2023
1 parent d3e714d commit c88d6ae
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions helpers/sql-obfuscation/test/helpers/sql_obfuscation_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit c88d6ae

Please sign in to comment.