-
-
Notifications
You must be signed in to change notification settings - Fork 760
Regression on ruby 1.8.7 in rspec-core 3.2.0 #1864
Comments
Thanks for reporting this. RSpec 3 does still support 1.8.7, and in fact our travis builds are all green on 1.8.7. There must be a case that your environment, configuration or specs hit that our test cases don't. I'll have to dig into it to see what's causing that. To repro, do I just clone https://github.com/puppetlabs/puppetlabs-apt, |
We've pinned rspec-core to 3.1.7, so you'll have to check out e8bef852edb3451d07fb3ff7f865aa7329a25c42 to see the issue. Thanks! |
So it appears that the problem is Puppet's https://github.com/puppetlabs/puppet/blob/3.7.4/lib/puppet/util/monkey_patches.rb#L80-L83 ...which explains why I never saw this failure on 1.8.7 before. I've put together a gist demonstrating that the presence of that monkey patch causes this failure: https://gist.github.com/myronmarston/75d5b470a8d258ed7f04 Clone that, and on 1.8.7, run It's not clear to me why your monkey patch causes this error, but regardless, when you monkey patch a core ruby method like I noticed that that monkey patch was removed in puppetlabs/puppet@65ca17c, so maybe you can upgrade to a newer puppet to avoid the error? |
Thanks so much for looking into this. We're planning to drop support for that version of puppet soon, so we'll just pin until then. Thanks! |
Looks like we are running into the same issue that the puppetlabs/puppetlabs-apt folks did rspec/rspec-core#1864
This should address the issue that @robruma is seeing in huit#52 This looks like we hit a similar issue to the puppetlabs/puppetlabs-apt module rspec/rspec-core#1864
rspec/rspec-core#1864 cleanup .travis.yaml
Rake failure caused by: rspec/rspec-core#1864
This fixes Travis builds on ruby 1.8.7.
This is done to cope with regression on ruby with rspec-core 3.2.0: rspec/rspec-core#1864
This is done to cope with regression on ruby with rspec-core 3.2.0: rspec/rspec-core#1864
* upstream/master: Pin rspec to < 3.2.0 Caused by Puppet monkey patches (rspec/rspec-core#1864) add contributors rake task example add contributors rake task Update and rename centos-65-x64.yml to centos-66-x64.yml
Caused by Puppet monkey patches (rspec/rspec-core#1864)
We're seeing an issue on ruby 1.8.7 when trying to require rspec. The traceback is
You can see the whole test environment here: https://travis-ci.org/puppetlabs/puppetlabs-apt/jobs/49343840
Since https://rubygems.org/gems/rspec-core still claims support for ruby 1.8.7 this seems like a regression to us.
Happy to provide any other info I can.
The text was updated successfully, but these errors were encountered: