Skip to content

Commit 68d7bb0

Browse files
author
George Hansper
committed
fix failing unit test for grant parameters
1 parent 8423d78 commit 68d7bb0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

spec/unit/defines/server/grant_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@
233233
"class {'postgresql::server':}"
234234
end
235235

236-
it { is_expected.to compile.and_raise_error(/parameter 'object_name' variant 0 expects size to be 2, got 1/) }
236+
it { is_expected.to compile.and_raise_error(/parameter 'object_name' variant [012] expects size to be 2, got 1/) }
237237
end
238238

239239
context 'invalid object_name - too many array elements' do
@@ -251,7 +251,7 @@
251251
"class {'postgresql::server':}"
252252
end
253253

254-
it { is_expected.to compile.and_raise_error(/parameter 'object_name' variant 0 expects size to be 2, got 3/) }
254+
it { is_expected.to compile.and_raise_error(/parameter 'object_name' variant [012] expects size to be 2, got 3/) }
255255
end
256256

257257
end

0 commit comments

Comments
 (0)