Skip to content

Commit ef3415e

Browse files
committed
Fix spec failures on puppet 4.8
These were caused by a change in the tested error message.
1 parent dfe0bf4 commit ef3415e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

spec/functions/validate_legacy_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
describe 'when failing the type assertion and passing the previous validation' do
2929
before do
3030
scope.expects(:function_validate_foo).with(['5']).once
31-
subject.func.expects(:call_function).with('deprecation', 'validate_legacy', includes('expected an Integer value')).once
31+
subject.func.expects(:call_function).with('deprecation', 'validate_legacy', includes('Integer')).once
3232
end
3333
it 'passes with a deprecation message' do
3434
is_expected.to run.with_params('Integer', 'validate_foo', '5')
@@ -38,7 +38,7 @@
3838
describe 'when failing the type assertion and failing the previous validation' do
3939
before do
4040
scope.expects(:function_validate_foo).with(['5']).raises(Puppet::ParseError, 'foo').once
41-
subject.func.expects(:call_function).with('fail', includes('expected an Integer value')).once
41+
subject.func.expects(:call_function).with('fail', includes('Integer')).once
4242
end
4343
it 'fails with a helpful message' do
4444
is_expected.to run.with_params('Integer', 'validate_foo', '5')

0 commit comments

Comments
 (0)