-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
broken by rspec-puppet 1.0.0+ #9
Comments
I was relying on what was probably an internal API to rspec-puppet to get at the catalogue for the class. I've sent a PR up to rspec-puppet to make this fully public and restore the old behaviour, so we can easily create new rspec groups built on the existing catalogue: rodjek/rspec-puppet#145 |
Nice catch! I'm surprised this hasn't caused more breakage as I've seen a few module tests that mess with catalogue directly. I don't understand all (most) of the magic that rspec does. Is there no way to access to the subject from a higher scope description block? |
rspec gives me a headache too, but I couldn't figure out a way if the subject was redefined. |
+1 Looks like your PR was merged. |
I'm wondering if #9 should be reverted. puppetlabs_spec_helper now requires rspec-puppet > 1.0.1, so we're into dependency hell even when pulling rspec-puppet from git.
|
This reverts commit 1a1fd0f.
due to these issues: * domcleal/rspec-puppet-augeas#9 * domcleal/rspec-puppet-augeas#14
Out of curiosity, do you even need Presumably you'd also need to co-exist with |
@wcooley |
@jhoblitt Sure, I did triage on that bug: https://tickets.puppetlabs.com/browse/MODULES-1069 Whether From a cursory glance, I suspect that everything this project needs is in (Maybe I'm a little grumpy that despite a number of requests in the |
@domcleal I'm trying to move my modules that use
The good news is that the issue I originally reported in this ticket appears to have stayed resolved post the merger of your patch. The bad news is that things blowup with the future parser enabled. Do you want to close this issue out and open a new one or get details of that problem here as well? |
@jhoblitt I'd like to keep this ticket open until rspec-puppet > 1.0.1 is released, then I can remove the daft pinning of < 1 from r-p-a. Sorry about the state this is in. If you could open a new ticket for the future parser issue, I'd be interested to read more, as I can't think what I'd need to change off the top of my head. |
I just hit test failures after running a bundle update. I haven't traced the root cause yet but both rspec-puppet 1.0.0 and 1.0.1 cause an exception to be raised by execute.with_change, aug_get, etc. Downgrading to rspec-puppet 0.1.6 fixes the test failures.
The text was updated successfully, but these errors were encountered: