Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix return type matching for Puppet functions #159

Merged
merged 1 commit into from
Feb 25, 2018

Conversation

pegasd
Copy link
Contributor

@pegasd pegasd commented Feb 23, 2018

This fixes the "Documented return type does not match return type" warning for Puppet functions when the types actually match.

@@ -20,7 +20,7 @@
let(:source) { 'function foo{' }

it 'should log an error' do
expect{ subject }.to output(/\[error\]: Failed to parse \(stdin\): Syntax error at end of file/).to_stdout_from_any_process
expect{ subject }.to output(/\[error\]: Failed to parse \(stdin\): Syntax error at end of/).to_stdout_from_any_process
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This slipped through since I was getting a different error message (at end of input instead of at end of file), hence a failing test.

This should cover both cases.

@eputnam
Copy link
Contributor

eputnam commented Feb 25, 2018

Thanks @pegasd ! LGTM

@eputnam eputnam merged commit 0b1a095 into puppetlabs:master Feb 25, 2018
@eputnam eputnam added the bugfix label Feb 26, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants