Skip to content

Commit a22471e

Browse files
committed
Fix ref_cte_name
1 parent c997099 commit a22471e

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

integration-tests/tests/unit/model_b_references_a.sql

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,15 @@
1414
select 1 as a, 'b' as b
1515
{% endcall %}
1616
{% endcall %}
17-
17+
18+
UNION ALL
19+
20+
{% call test_condition_on_model_query('model_b_references_a', "should ", {},
21+
assert_should_contain, dbt_unit_testing.quote_identifier("model_a")) %}
22+
{% call dbt_unit_testing.mock_ref ('model_a') %}
23+
select 1 as id
24+
{% endcall %}
25+
{% call dbt_unit_testing.expect() %}
26+
select 1 as id
27+
{% endcall %}
28+
{% endcall %}

0 commit comments

Comments
 (0)