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

Missing message for negative failures #18

Open
kimroen opened this issue Sep 10, 2018 · 0 comments
Open

Missing message for negative failures #18

kimroen opened this issue Sep 10, 2018 · 0 comments

Comments

@kimroen
Copy link

kimroen commented Sep 10, 2018

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 }
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant