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
#backtrace_clean_patterns is deprecated #37
Conversation
Compatibility with rspec-core 2.14.0 Replaced backtrace_clean_patterns by backtrace_exclusion_patterns
Thanks, but as mentioned in #36 I don't want to outright replace patterns =
if RSpec.configuration.respond_to?(:backtrace_exclusion_patterns)
RSpec.configuration.backtrace_exclusion_patterns
else
RSpec.configuration.backtrace_clean_patterns
end Can you make these changes instead? |
For sure, I was forgetting backward compatibility. |
If you would like, yes. You'll want to update the appraisal gemfiles, though. There are references to rspec ~> 2.13 and also rspec-rails ~> 2.0 in the Appraisals file - update both to ~> 2.14 and then run |
I will do that this evening. |
Any chance of getting a new gem release with this in it? |
Yes, I haven't forgotten. I'll have a new release soon. |
I wait a new release 😌 |
Thanks, merged. |
Just released 1.1.2 with this change. |
Excellent! Thanks! |
Cool. I put this in the changelog but please note, if you are using RSpec.configure do |c|
c.mock_with :rr
end you will still see a deprecation warning. This is coming from RSpec, not RR, specifically this line: https://github.com/rspec/rspec-core/blob/v2.14.5/lib/rspec/core/mocking/with_rr.rb#L3. This will be fixed in the next release of RSpec, so you can either wait until then, or drop |
FWIW; using the latest stable rspec (2.14.7), I'm still seeing the deprecation warning. It looks like on master it's fixed already, but I guess we will have to wait a bit. |
Oh, I should add that removing the (I'm using Padrino 0.12.0) |
This commit fixes the following error: DEPRECATION: RSpec::Core::Configuration#backtrace_clean_patterns is deprecated. Use RSpec::Core::Configuration#backtrace_exclusion_patterns instead. ...that appears when using rspec + rr. Since a while there's no need of using the `conf.with_mock :rr` in Rspec conf. See more info [here][1]. [1]: rr/rr#37 (comment)
Okay, thanks. Out of curiosity what are the deprecations you're seeing from RSpec? Is there a backtrace associated? |
Oh, since somewhere along the road rspec changed from |
Compatibility with rspec-core 2.14.0
Replaced backtrace_clean_patterns by backtrace_exclusion_patterns