Closed blackknight36 closed 3 years ago
I was able to resolve this issue by 1) having my case statement in a context (as you do) and 2) including a let(:facts) { facts }
at the start of that context.
I was able to resolve this issue by 1) having my case statement in a context (as you do) and 2) including a
let(:facts) { facts }
at the start of that context.
Thanks. It's been a few years since I looked at this but I will give that a shot.
I have a spec file which is used to test a class on multiple OSes however my case statement only appears to be getting evaluated when the first loop runs. For example, here is the code I'm using.
This spec file fails when the Windows and CentOS tests run due to the paths not being updated properly. Is there another way to ensure that my variables are getting set properly for each OS?