-
Notifications
You must be signed in to change notification settings - Fork 105
Closed
Description
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:
before(:each) do
# Fake assert_private function from stdlib to not fail within this test
Puppet::Parser::Functions.newfunction(:assert_private, :type => :rvalue) { |args| }
endCan 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?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels