Skip to content

Commit

Permalink
Fix ref_cte_name
Browse files Browse the repository at this point in the history
  • Loading branch information
psousa50 committed Sep 11, 2023
1 parent c997099 commit a22471e
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion integration-tests/tests/unit/model_b_references_a.sql
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,15 @@
select 1 as a, 'b' as b
{% endcall %}
{% endcall %}


UNION ALL

{% call test_condition_on_model_query('model_b_references_a', "should ", {},
assert_should_contain, dbt_unit_testing.quote_identifier("model_a")) %}
{% call dbt_unit_testing.mock_ref ('model_a') %}
select 1 as id
{% endcall %}
{% call dbt_unit_testing.expect() %}
select 1 as id
{% endcall %}
{% endcall %}

0 comments on commit a22471e

Please sign in to comment.