{"action":"created","issue":{"url":"https://api.github.com/repos/rspec/rspec-expectations/issues/822","labels_url":"https://api.github.com/repos/rspec/rspec-expectations/issues/822/labels{/name}","comments_url":"https://api.github.com/repos/rspec/rspec-expectations/issues/822/comments","events_url":"https://api.github.com/repos/rspec/rspec-expectations/issues/822/events","html_url":"https://github.com/rspec/rspec-expectations/issues/822","id":95777658,"number":822,"title":"raise_error warning should include current error message","user":{"login":"xaviershay","id":1714,"avatar_url":"https://avatars.githubusercontent.com/u/1714?v=3","gravatar_id":"","url":"https://api.github.com/users/xaviershay","html_url":"https://github.com/xaviershay","followers_url":"https://api.github.com/users/xaviershay/followers","following_url":"https://api.github.com/users/xaviershay/following{/other_user}","gists_url":"https://api.github.com/users/xaviershay/gists{/gist_id}","starred_url":"https://api.github.com/users/xaviershay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xaviershay/subscriptions","organizations_url":"https://api.github.com/users/xaviershay/orgs","repos_url":"https://api.github.com/users/xaviershay/repos","events_url":"https://api.github.com/users/xaviershay/events{/privacy}","received_events_url":"https://api.github.com/users/xaviershay/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":10,"created_at":"2015-07-18T02:04:20Z","updated_at":"2015-10-14T14:56:50Z","closed_at":null,"body":"In upgrade some applications to latest RSpec, I've noticed a common pattern:\r\n\r\n* Get a warning about using `raise_error` without an argument.\r\n* Comment out `raise_error` expectation and re-run test to see what an appropriate argument would be from the failure.\r\n* Add argument, re-run test to see it green.\r\n\r\nLooking at `BuiltIn::RaiseError#matches?` seems like it could be pretty straight-forward to include the exception message (if raised) in the warning."},"comment":{"url":"https://api.github.com/repos/rspec/rspec-expectations/issues/comments/148075952","html_url":"https://github.com/rspec/rspec-expectations/issues/822#issuecomment-148075952","issue_url":"https://api.github.com/repos/rspec/rspec-expectations/issues/822","id":148075952,"user":{"login":"xaviershay","id":1714,"avatar_url":"https://avatars.githubusercontent.com/u/1714?v=3","gravatar_id":"","url":"https://api.github.com/users/xaviershay","html_url":"https://github.com/xaviershay","followers_url":"https://api.github.com/users/xaviershay/followers","following_url":"https://api.github.com/users/xaviershay/following{/other_user}","gists_url":"https://api.github.com/users/xaviershay/gists{/gist_id}","starred_url":"https://api.github.com/users/xaviershay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xaviershay/subscriptions","organizations_url":"https://api.github.com/users/xaviershay/orgs","repos_url":"https://api.github.com/users/xaviershay/repos","events_url":"https://api.github.com/users/xaviershay/events{/privacy}","received_events_url":"https://api.github.com/users/xaviershay/received_events","type":"User","site_admin":false},"created_at":"2015-10-14T14:56:50Z","updated_at":"2015-10-14T14:56:50Z","body":"I think this has always been here, but just noticed a typo in \"supressed\""}}