Skip to content
This repository was archived by the owner on Jun 11, 2022. It is now read-only.
This repository was archived by the owner on Jun 11, 2022. It is now read-only.

Missing message for negative failures #18

@kimroen

Description

@kimroen

If you use the matchers with a negative assertion and the spec fails, you get this error instead of the expected test failure:

NoMethodError:
       undefined method `failure_message_when_negated' for #<JSONAPI::Resources::Matchers::HaveAttribute:0x00007f95870f3420>
       Did you mean?  failure_message

Example of a test that triggers this issue:

it { is_expected.not_to have_attribute :password }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions