Business intelligence made simple
Added test for emails normalization [skip ci]
Andrew Kane77a4a2c1cc86
diff --git a/test/checks_test.rb b/test/checks_test.rbindex 04bcda8a..6f105a57 100644--- a/test/checks_test.rb+++ b/test/checks_test.rb@@ -116,6 +116,15 @@ class ChecksTest < ActionDispatch::IntegrationTestendend+ def test_emails_normalize+ query = create_query+ check = create_check(query: query, check_type: "bad_data", emails: "[email protected];[email protected]")+ assert_equal "[email protected], [email protected]", check.emails++ check.update!(emails: "[email protected], [email protected]")+ assert_equal "[email protected], [email protected]", check.emails+ end+def test_emails_invalidquery = create_query