-
Notifications
You must be signed in to change notification settings - Fork 202
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
#subject method no longer exists #235
Comments
Also worth mentioning, replacing usage of |
The verify_contents method invocations have been updated to work with rspec-puppet 1.0.1+ but are now incompatible with <= 1.0.1 rodjek/rspec-puppet#235
The verify_contents method invocations have been updated to work with rspec-puppet 1.0.1+ but are now incompatible with <= 1.0.1 rodjek/rspec-puppet#235
The verify_contents method invocations have been updated to work with rspec-puppet 1.0.1+ but are now incompatible with <= 1.0.1 rodjek/rspec-puppet#235
This patch bumps the version of rspec-puppet to 2.0.0. A new major version is warranted because of the following changes noted by Joshua Hoblitt. There were several small bits of breakage and most (all?) of my modules required forward porting work. Some tests still had include_class, which I believe was long deprecated anyways. * I ended up pinning the version of rspec-core as gem 'rspec-core', '~> 2.0' to silence rspec 3 warnings. It would be nice if a new release set this requirement it it's gemspec. * It looks like libdir handling changes broke rspec-puppet-augeas domcleal/rspec-puppet-augeas#15 * All instances of verify_contents(subject, ...) broke as subject has been removed and replaced with catalogue. #235 * The construct I had been using to check for exceptions in negative tests broke. expect { should }.to raise_error(...) had to be replaced with should raise_error(...) The last 2-3 are definitely breaking changes from 1.0.0 and I believe this warrants a major version bump. Otherwise, I expect 'rspec-puppet', '~> 1.0' will still break a number of module's tests.
Fixes the rspec tests as documented in rodjek/rspec-puppet#235 .
Fixes the rspec tests as documented in rodjek/rspec-puppet#235 .
Fixes the rspec tests as documented in rodjek/rspec-puppet#235 .
Fixes the rspec tests as documented in rodjek/rspec-puppet#235 .
Fixes the rspec tests as documented in rodjek/rspec-puppet#235 .
Fixes the rspec tests as documented in rodjek/rspec-puppet#235 .
Fixes the rspec tests as documented in rodjek/rspec-puppet#235 .
Is there a reason those tests do not use |
@DavidS As to using the implicit receiver instead of I'm not sure if any action is needed at this point since there has been a major API bump since I opened this issue. |
It appears that the
#subject
alias to#catalogue
was removed in 34220fc . This breaks fairly idiomatic usage of puppetlabs_spec_helper's#verify_contents
. I assume this was done so as not to conflict with arspec-core
usage of#subject
? In any event, this happened without a deprecation warning. I've opened a bug on https://tickets.puppetlabs.com/browse/MODULES-1514 as well.The fix is to replace
subject
withcatalogue
in the invocation of#verify_contents
.The text was updated successfully, but these errors were encountered: