summaryrefslogtreecommitdiff
path: root/spec/functions/validate_legacy_spec.rb
diff options
context:
space:
mode:
authorDavid Schmitt <david.schmitt@puppet.com>2016-11-10 12:22:15 +0000
committerDavid Schmitt <david.schmitt@puppet.com>2016-11-10 12:23:28 +0000
commitef3415e6e78452bef1fe8c7891d1f2794d2b794a (patch)
tree2906c003d9229327eda082eae63f7ad9f32b32a9 /spec/functions/validate_legacy_spec.rb
parentdfe0bf4706edb14cba7fe3b909378c336eb92045 (diff)
Fix spec failures on puppet 4.8
These were caused by a change in the tested error message.
Diffstat (limited to 'spec/functions/validate_legacy_spec.rb')
-rw-r--r--spec/functions/validate_legacy_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/functions/validate_legacy_spec.rb b/spec/functions/validate_legacy_spec.rb
index 45089ef..50cb317 100644
--- a/spec/functions/validate_legacy_spec.rb
+++ b/spec/functions/validate_legacy_spec.rb
@@ -28,7 +28,7 @@ if Puppet.version.to_f >= 4.0
describe 'when failing the type assertion and passing the previous validation' do
before do
scope.expects(:function_validate_foo).with(['5']).once
- subject.func.expects(:call_function).with('deprecation', 'validate_legacy', includes('expected an Integer value')).once
+ subject.func.expects(:call_function).with('deprecation', 'validate_legacy', includes('Integer')).once
end
it 'passes with a deprecation message' do
is_expected.to run.with_params('Integer', 'validate_foo', '5')
@@ -38,7 +38,7 @@ if Puppet.version.to_f >= 4.0
describe 'when failing the type assertion and failing the previous validation' do
before do
scope.expects(:function_validate_foo).with(['5']).raises(Puppet::ParseError, 'foo').once
- subject.func.expects(:call_function).with('fail', includes('expected an Integer value')).once
+ subject.func.expects(:call_function).with('fail', includes('Integer')).once
end
it 'fails with a helpful message' do
is_expected.to run.with_params('Integer', 'validate_foo', '5')