Skip to content

Commit 7142e79

Browse files
committed
Added test for missing columns with cohort analysis [skip ci]
1 parent 26e1c46 commit 7142e79

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

test/cohort_analysis_test.rb

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,11 @@ def test_cohort_time
1111
assert_match "1 cohort", response.body
1212
end
1313

14+
def test_missing_columns
15+
run_query "SELECT 1 /* cohort analysis */", query_id: 1
16+
assert_match "alert-danger", response.body
17+
end
18+
1419
def test_cohort_period_default
1520
query = create_query(statement: "SELECT 1 AS user_id, NOW() AS conversion_time /* cohort analysis */")
1621
get blazer.query_path(query)

0 commit comments

Comments
 (0)