summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorHelen <helen@puppetlabs.com>2016-11-10 13:58:48 +0000
committerGitHub <noreply@github.com>2016-11-10 13:58:48 +0000
commitb527d3b303fbe8e6deab58f491bc178c761495cd (patch)
tree2906c003d9229327eda082eae63f7ad9f32b32a9 /spec
parentdfe0bf4706edb14cba7fe3b909378c336eb92045 (diff)
parentef3415e6e78452bef1fe8c7891d1f2794d2b794a (diff)
Merge pull request #689 from DavidS/fix-test-failures
Fix spec failures on puppet 4.8
Diffstat (limited to 'spec')
-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')