{"action":"opened","issue":{"url":"https://api.github.com/repos/rspec/rspec-expectations/issues/788","labels_url":"https://api.github.com/repos/rspec/rspec-expectations/issues/788/labels{/name}","comments_url":"https://api.github.com/repos/rspec/rspec-expectations/issues/788/comments","events_url":"https://api.github.com/repos/rspec/rspec-expectations/issues/788/events","html_url":"https://github.com/rspec/rspec-expectations/issues/788","id":75494868,"number":788,"title":"`match_when_negated` does not handle expectation failures like `match` does","user":{"login":"myronmarston","id":49391,"avatar_url":"https://avatars.githubusercontent.com/u/49391?v=3","gravatar_id":"","url":"https://api.github.com/users/myronmarston","html_url":"https://github.com/myronmarston","followers_url":"https://api.github.com/users/myronmarston/followers","following_url":"https://api.github.com/users/myronmarston/following{/other_user}","gists_url":"https://api.github.com/users/myronmarston/gists{/gist_id}","starred_url":"https://api.github.com/users/myronmarston/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/myronmarston/subscriptions","organizations_url":"https://api.github.com/users/myronmarston/orgs","repos_url":"https://api.github.com/users/myronmarston/repos","events_url":"https://api.github.com/users/myronmarston/events{/privacy}","received_events_url":"https://api.github.com/users/myronmarston/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/rspec/rspec-expectations/labels/small","name":"small","color":"5319e7"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-05-12T07:11:35Z","updated_at":"2015-05-12T07:11:35Z","closed_at":null,"body":"The definition of `match` in the matcher DSL rescues `ExpectationNotMetError` and returns `false`, allowing expectations to be used in `match` blocks:\r\n\r\nhttps://github.com/rspec/rspec-expectations/blob/6717b726863f668a9eeebd069706e0187edee99b/lib/rspec/matchers/dsl.rb#L64-L65\r\n\r\nHowever, `match_when_negated` does not do this:\r\n\r\nhttps://github.com/rspec/rspec-expectations/blob/6717b726863f668a9eeebd069706e0187edee99b/lib/rspec/matchers/dsl.rb#L76-L81\r\n\r\nThis should be fixed, as these two methods should have parity with respect to how expectation failures are treated.\r\n\r\nNote that I'm currently working on some edits in this area as part of #776 so whoever works on this may want to hold off until that PR is merged to reduce the likliehood of merge conflicts."}}