Skip to content

Commit

Permalink
Deprecate StartAndEndWith
Browse files Browse the repository at this point in the history
  • Loading branch information
pirj committed Jul 18, 2021
1 parent 6413500 commit 17e2bd3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/rspec/matchers/built_in/start_or_end_with.rb
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,10 @@ def subsets_comparable?
# we still provide this constant until 4.0.
# @deprecated Use StartOrEndWith instead.
# @private
StartAndEndWith = StartOrEndWith
def StartAndEndWith()
RSpec.deprecate("`StartAndEndWith`", replacement: "`StartOrEndWith`")
StartOrEndWith
end

# @api private
# Provides the implementation for `start_with`.
Expand Down

0 comments on commit 17e2bd3

Please sign in to comment.