Business intelligence made simple
Added test for cohort_time [skip ci]
Andrew Kane26e1c46f090d
diff --git a/test/cohort_analysis_test.rb b/test/cohort_analysis_test.rbindex 7da3e592..4bbfec48 100644--- a/test/cohort_analysis_test.rb+++ b/test/cohort_analysis_test.rb@@ -6,6 +6,11 @@ class CohortAnalysisTest < ActionDispatch::IntegrationTestassert_match "1 cohort", response.bodyend+ def test_cohort_time+ run_query "SELECT 1 AS user_id, NOW() AS cohort_time, NOW() AS conversion_time /* cohort analysis */", query_id: 1+ assert_match "1 cohort", 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)