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

Show a diff for comparisons of arrays of one-line strings #597

Commits on May 9, 2024

  1. Add tests checking handling of single-line string arrays

    (as described in rspec-expectations/rspec#415)
    nevinera committed May 9, 2024
    Configuration menu
    Copy the full SHA
    63f2e2c View commit details
    Browse the repository at this point in the history
  2. Update Differ to handle arrays of single-line strings

    (instead of skipping them). This behavior was originally added in in
    rspec-expectations commit 044b0a6, as part of
    rspec/rspec-expectations#115, which was
    intended to `expect("a").to eq("b")` from showing an extra diff, when
    the error message already showed the whole diff (so the diff itself was
    kind of unnecessary). There are tests already enforcing _that_, so we
    don't need to add any, but this change retains that behavior (though
    single-element single-line array comparisons do now get a diff).
    nevinera committed May 9, 2024
    Configuration menu
    Copy the full SHA
    9a4b0be View commit details
    Browse the repository at this point in the history