Skip to content
This repository has been archived by the owner on Nov 30, 2024. It is now read-only.

Update StartWith, EndWith to use start_with?, end_with? if available #1327

Closed

Commits on Oct 13, 2021

  1. Update StartWith, EndWith to use native methods if available

    This addresses issue rspec#1025.
    
    With this change, the StartWith matcher will rely on an object's
    start_with? method if available.  Similarly, the EndWith matcher
    will rely on an object's end_with? method if available.
    
    This is especially useful when a class implements start_with?
    but not the indexing operator, or end_with? but not the indexing
    operator.
    bclayman-sq committed Oct 13, 2021
    Configuration menu
    Copy the full SHA
    fdc2d26 View commit details
    Browse the repository at this point in the history