Test that new campsite types created by PL/pgSQL function are active

This commit is contained in:
jordi fita mas 2023-08-14 20:19:17 +02:00
parent 216ae20638
commit 98880d9173
1 changed files with 3 additions and 3 deletions

View File

@ -42,9 +42,9 @@ select lives_ok(
);
select bag_eq(
$$ select company_id, name, description::text from campsite_type $$,
$$ values (1, 'Type A', '<!-- block --><h2>This is what, exactly?</h2><!-- /block --><p>Dunno</p>')
, (2, 'Type B', '')
$$ select company_id, name, description::text, active from campsite_type $$,
$$ values (1, 'Type A', '<!-- block --><h2>This is what, exactly?</h2><!-- /block --><p>Dunno</p>', true)
, (2, 'Type B', '', true)
$$,
'Should have added all two campsite type'
);