Test that new campsite types created by PL/pgSQL function are active
This commit is contained in:
parent
216ae20638
commit
98880d9173
|
@ -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'
|
||||
);
|
||||
|
|
Loading…
Reference in New Issue