Business intelligence made simple
Added test for missing columns with cohort analysis [skip ci]
Andrew Kane7142e79ea802
diff --git a/test/cohort_analysis_test.rb b/test/cohort_analysis_test.rbindex 4bbfec48..b80dc00e 100644--- a/test/cohort_analysis_test.rb+++ b/test/cohort_analysis_test.rb@@ -11,6 +11,11 @@ class CohortAnalysisTest < ActionDispatch::IntegrationTestassert_match "1 cohort", response.bodyend+ def test_missing_columns+ run_query "SELECT 1 /* cohort analysis */", query_id: 1+ assert_match "alert-danger", response.body+ end+def test_cohort_period_defaultquery = create_query(statement: "SELECT 1 AS user_id, NOW() AS conversion_time /* cohort analysis */")get blazer.query_path(query)