New be within matcher and RSpec.deprecate fix#32
New be within matcher and RSpec.deprecate fix#32myronmarston wants to merge 0 commit intorspec:masterfrom
Conversation
|
I merged the deprecate port. Thinking about depending on the deprecated gem in the future, though. WDYT? |
|
Add be_within(delta).of(expected) matcher
|
I've never used the deprecated gem, but it looks like it does provide nice, flexible deprecation functionality. That said, my feeling is that the current deprecation behavior is pretty sufficient, and I don't anticipate If/when you find that you need more deprecation flexibility than the current |
This matcher is much nicer than be_close, in my opinion. It should probably only be included in the future 2.1.0 release since it's a new API.
The first commit should probably also be included in the next 2.0.x release, since
RSpec.deprecateis already being called here, even though it's defined in rspec-core and we want rspec-expectations to be usable without core.