Skip to content

Commit 5638cb6

Browse files
committed
Explicitly pass in a boolean for sensitive
It doesn't accept nil for an optional parameter, it must be a boolean.
1 parent e1c4193 commit 5638cb6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

spec/spec_helper_local.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,12 +58,12 @@ def param(type, title, param)
5858
)
5959
}
6060
it {
61-
is_expected.to run.with_params('foo', 'bar', nil, 'scram-sha-256').and_return(
61+
is_expected.to run.with_params('foo', 'bar', false, 'scram-sha-256').and_return(
6262
'SCRAM-SHA-256$4096:YmFy$y1VOaTvvs4V3OECvMzre9FtgCZClGuBLVE6sNPsTKbs=:HwFqmSKbihSyHMqkhufOy++cWCFIoTRSg8y6YgeALzE='
6363
)
6464
}
6565
it {
66-
is_expected.to run.with_params('foo', 'bar', nil, 'scram-sha-256', 'salt').and_return(
66+
is_expected.to run.with_params('foo', 'bar', false, 'scram-sha-256', 'salt').and_return(
6767
'SCRAM-SHA-256$4096:c2FsdA==$zOt2zFfUQMbpQf3/vRnYB33QDK/L7APOBHniLy39j/4=:DcW5Jp8Do7wYhVp1f9aT0cyhUfzIAozGcvzXZj+M3YI='
6868
)
6969
}

0 commit comments

Comments
 (0)