You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We also encountered this error, and wondered what is the best way to fix it. Currently I just create an empty ./lib/win32ole.rb file in my pdk project and it allows me to handle the require 'win32ole' statement in the fact. I am not sure if this is best practice or not, but considering we have to mock all of the method calls anyway, I was not able to find a way to mock the require 'win32ole' statement in the fact to avoid having to have the empty file on disk
I have a module containing a custom fact that requires win32ole. This fails on linux.
I can fix this if I add 'win32/resolv' and 'win32ole' to the list of ruby gems to fake out the requiring of in lib/rspec-puppet/monkey_patches.rb.
Is this the best way to fix this? I can submit a PR...
The text was updated successfully, but these errors were encountered: