Skip to content

Fix return type matching for Puppet functions#159

Merged
eputnam merged 1 commit intopuppetlabs:masterfrom
pegasd:fix_return_type_matching
Feb 25, 2018
Merged

Fix return type matching for Puppet functions#159
eputnam merged 1 commit intopuppetlabs:masterfrom
pegasd:fix_return_type_matching

Conversation

@pegasd
Copy link
Copy Markdown
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.


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
Copy Markdown
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
Copy Markdown
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