Skip to content

Commit 0e48fdd

Browse files
committed
Ensure array keyword is included in vacuous array test case
1 parent 6538f88 commit 0e48fdd

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

spec/unit/defines/server/dbgroup_spec.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,10 @@
3434
})
3535
end
3636
it 'should have update pg_group for test group with groupmembers as []' do
37-
is_expected.to contain_postgresql_psql("test: UPDATE pg_group SET grolist = [] WHERE groname = 'test'").with({
38-
'command' => "UPDATE pg_group SET grolist = [] WHERE groname = 'test'",
37+
is_expected.to contain_postgresql_psql("test: UPDATE pg_group SET grolist = ARRAY[] WHERE groname = 'test'").with({
38+
'command' => "UPDATE pg_group SET grolist = ARRAY[] WHERE groname = 'test'",
3939
'environment' => [],
40-
'unless' => "SELECT 1 FROM pg_group WHERE groname = 'test' AND grolist = []",
40+
'unless' => "SELECT 1 FROM pg_group WHERE groname = 'test' AND grolist = ARRAY[]",
4141
'port' => "5432",
4242
})
4343
end

0 commit comments

Comments
 (0)