Skip to content

Add a disclaimer about include, contain_exactly, and match_array #172

Description

@mcmire

When used with an array, these matchers don't assume that the array is in a particular kind of order. Therefore, the diff that SuperDiff produces for them will probably a bit difficult to grok, particularly if you're using fuzzy matcher objects (an_object_having_attributes et al.). In addition, if you have elision enabled, it's actually going to hide details that you need to debug your test properly. Therefore, we should recommend that people use match or even eq as it will lead to a better developer experience.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions