rspec-puppet doesn’t handle private classes well #1010
Unanswered
natemccurdy
asked this question in
Feature Request
Replies: 1 comment
-
Should be easy enough to detect that function using the Puppet AST. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have a lot of classes in modules that are marked private with
assert_private()
.When I convert those modules with
pdk convert
, tests fail because of that function.I've had to add this stub to a lot of my spec tests so that even basic "it should compile" tests pass:
Can anything be done to make this more user friendly? Maybe rspec-puppet can intelligently stub that out behind the scenes or maybe PDK can insert that stub when converting a private class?
Beta Was this translation helpful? Give feedback.
All reactions