{"action":"opened","number":862,"pull_request":{"url":"https://api.github.com/repos/rspec/rspec-expectations/pulls/862","id":47652603,"html_url":"https://github.com/rspec/rspec-expectations/pull/862","diff_url":"https://github.com/rspec/rspec-expectations/pull/862.diff","patch_url":"https://github.com/rspec/rspec-expectations/pull/862.patch","issue_url":"https://api.github.com/repos/rspec/rspec-expectations/issues/862","number":862,"state":"open","locked":false,"title":"Include current error message in raise_error warning","user":{"login":"mrageh","id":2530296,"avatar_url":"https://avatars.githubusercontent.com/u/2530296?v=3","gravatar_id":"","url":"https://api.github.com/users/mrageh","html_url":"https://github.com/mrageh","followers_url":"https://api.github.com/users/mrageh/followers","following_url":"https://api.github.com/users/mrageh/following{/other_user}","gists_url":"https://api.github.com/users/mrageh/gists{/gist_id}","starred_url":"https://api.github.com/users/mrageh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mrageh/subscriptions","organizations_url":"https://api.github.com/users/mrageh/orgs","repos_url":"https://api.github.com/users/mrageh/repos","events_url":"https://api.github.com/users/mrageh/events{/privacy}","received_events_url":"https://api.github.com/users/mrageh/received_events","type":"User","site_admin":false},"body":"Fix for issue #822\r\n\r\nhttps://github.com/rspec/rspec-expectations/issues/822\r\n\r\nWhen the raise_error() matcher triggers a warning it does not include\r\nthe cause of the actual error. This commit changes the warning message\r\nto include the actual error that was raised.\r\n\r\nI've moved setting the warning message `RaiseError#warn_about_bare_error`\r\nfurther down in `RaiseError##matches` because the warning message needs\r\nan instance variable to be set in order to display the current error.","created_at":"2015-10-14T12:31:30Z","updated_at":"2015-10-14T12:31:30Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/rspec/rspec-expectations/pulls/862/commits","review_comments_url":"https://api.github.com/repos/rspec/rspec-expectations/pulls/862/comments","review_comment_url":"https://api.github.com/repos/rspec/rspec-expectations/pulls/comments{/number}","comments_url":"https://api.github.com/repos/rspec/rspec-expectations/issues/862/comments","statuses_url":"https://api.github.com/repos/rspec/rspec-expectations/statuses/feeec80d3940cc64ad156944219218658428fff2","head":{"label":"mrageh:include-error-message-in-raise-error-warning","ref":"include-error-message-in-raise-error-warning","sha":"feeec80d3940cc64ad156944219218658428fff2","user":{"login":"mrageh","id":2530296,"avatar_url":"https://avatars.githubusercontent.com/u/2530296?v=3","gravatar_id":"","url":"https://api.github.com/users/mrageh","html_url":"https://github.com/mrageh","followers_url":"https://api.github.com/users/mrageh/followers","following_url":"https://api.github.com/users/mrageh/following{/other_user}","gists_url":"https://api.github.com/users/mrageh/gists{/gist_id}","starred_url":"https://api.github.com/users/mrageh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mrageh/subscriptions","organizations_url":"https://api.github.com/users/mrageh/orgs","repos_url":"https://api.github.com/users/mrageh/repos","events_url":"https://api.github.com/users/mrageh/events{/privacy}","received_events_url":"https://api.github.com/users/mrageh/received_events","type":"User","site_admin":false},"repo":{"id":44246205,"name":"rspec-expectations","full_name":"mrageh/rspec-expectations","owner":{"login":"mrageh","id":2530296,"avatar_url":"https://avatars.githubusercontent.com/u/2530296?v=3","gravatar_id":"","url":"https://api.github.com/users/mrageh","html_url":"https://github.com/mrageh","followers_url":"https://api.github.com/users/mrageh/followers","following_url":"https://api.github.com/users/mrageh/following{/other_user}","gists_url":"https://api.github.com/users/mrageh/gists{/gist_id}","starred_url":"https://api.github.com/users/mrageh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mrageh/subscriptions","organizations_url":"https://api.github.com/users/mrageh/orgs","repos_url":"https://api.github.com/users/mrageh/repos","events_url":"https://api.github.com/users/mrageh/events{/privacy}","received_events_url":"https://api.github.com/users/mrageh/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mrageh/rspec-expectations","description":"Provides a readable API to express expected outcomes of a code example","fork":true,"url":"https://api.github.com/repos/mrageh/rspec-expectations","forks_url":"https://api.github.com/repos/mrageh/rspec-expectations/forks","keys_url":"https://api.github.com/repos/mrageh/rspec-expectations/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mrageh/rspec-expectations/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mrageh/rspec-expectations/teams","hooks_url":"https://api.github.com/repos/mrageh/rspec-expectations/hooks","issue_events_url":"https://api.github.com/repos/mrageh/rspec-expectations/issues/events{/number}","events_url":"https://api.github.com/repos/mrageh/rspec-expectations/events","assignees_url":"https://api.github.com/repos/mrageh/rspec-expectations/assignees{/user}","branches_url":"https://api.github.com/repos/mrageh/rspec-expectations/branches{/branch}","tags_url":"https://api.github.com/repos/mrageh/rspec-expectations/tags","blobs_url":"https://api.github.com/repos/mrageh/rspec-expectations/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mrageh/rspec-expectations/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mrageh/rspec-expectations/git/refs{/sha}","trees_url":"https://api.github.com/repos/mrageh/rspec-expectations/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mrageh/rspec-expectations/statuses/{sha}","languages_url":"https://api.github.com/repos/mrageh/rspec-expectations/languages","stargazers_url":"https://api.github.com/repos/mrageh/rspec-expectations/stargazers","contributors_url":"https://api.github.com/repos/mrageh/rspec-expectations/contributors","subscribers_url":"https://api.github.com/repos/mrageh/rspec-expectations/subscribers","subscription_url":"https://api.github.com/repos/mrageh/rspec-expectations/subscription","commits_url":"https://api.github.com/repos/mrageh/rspec-expectations/commits{/sha}","git_commits_url":"https://api.github.com/repos/mrageh/rspec-expectations/git/commits{/sha}","comments_url":"https://api.github.com/repos/mrageh/rspec-expectations/comments{/number}","issue_comment_url":"https://api.github.com/repos/mrageh/rspec-expectations/issues/comments{/number}","contents_url":"https://api.github.com/repos/mrageh/rspec-expectations/contents/{+path}","compare_url":"https://api.github.com/repos/mrageh/rspec-expectations/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mrageh/rspec-expectations/merges","archive_url":"https://api.github.com/repos/mrageh/rspec-expectations/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mrageh/rspec-expectations/downloads","issues_url":"https://api.github.com/repos/mrageh/rspec-expectations/issues{/number}","pulls_url":"https://api.github.com/repos/mrageh/rspec-expectations/pulls{/number}","milestones_url":"https://api.github.com/repos/mrageh/rspec-expectations/milestones{/number}","notifications_url":"https://api.github.com/repos/mrageh/rspec-expectations/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mrageh/rspec-expectations/labels{/name}","releases_url":"https://api.github.com/repos/mrageh/rspec-expectations/releases{/id}","created_at":"2015-10-14T12:30:47Z","updated_at":"2015-10-14T12:30:48Z","pushed_at":"2015-10-14T12:31:05Z","git_url":"git://github.com/mrageh/rspec-expectations.git","ssh_url":"git@github.com:mrageh/rspec-expectations.git","clone_url":"https://github.com/mrageh/rspec-expectations.git","svn_url":"https://github.com/mrageh/rspec-expectations","homepage":"http://relishapp.com/rspec/rspec-expectations","size":10005,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_downloads":false,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"rspec:master","ref":"master","sha":"d4586a42ae3ff92a277e46e04863ea0131b02b7c","user":{"login":"rspec","id":22388,"avatar_url":"https://avatars.githubusercontent.com/u/22388?v=3","gravatar_id":"","url":"https://api.github.com/users/rspec","html_url":"https://github.com/rspec","followers_url":"https://api.github.com/users/rspec/followers","following_url":"https://api.github.com/users/rspec/following{/other_user}","gists_url":"https://api.github.com/users/rspec/gists{/gist_id}","starred_url":"https://api.github.com/users/rspec/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rspec/subscriptions","organizations_url":"https://api.github.com/users/rspec/orgs","repos_url":"https://api.github.com/users/rspec/repos","events_url":"https://api.github.com/users/rspec/events{/privacy}","received_events_url":"https://api.github.com/users/rspec/received_events","type":"Organization","site_admin":false},"repo":{"id":238986,"name":"rspec-expectations","full_name":"rspec/rspec-expectations","owner":{"login":"rspec","id":22388,"avatar_url":"https://avatars.githubusercontent.com/u/22388?v=3","gravatar_id":"","url":"https://api.github.com/users/rspec","html_url":"https://github.com/rspec","followers_url":"https://api.github.com/users/rspec/followers","following_url":"https://api.github.com/users/rspec/following{/other_user}","gists_url":"https://api.github.com/users/rspec/gists{/gist_id}","starred_url":"https://api.github.com/users/rspec/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rspec/subscriptions","organizations_url":"https://api.github.com/users/rspec/orgs","repos_url":"https://api.github.com/users/rspec/repos","events_url":"https://api.github.com/users/rspec/events{/privacy}","received_events_url":"https://api.github.com/users/rspec/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/rspec/rspec-expectations","description":"Provides a readable API to express expected outcomes of a code example","fork":false,"url":"https://api.github.com/repos/rspec/rspec-expectations","forks_url":"https://api.github.com/repos/rspec/rspec-expectations/forks","keys_url":"https://api.github.com/repos/rspec/rspec-expectations/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rspec/rspec-expectations/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rspec/rspec-expectations/teams","hooks_url":"https://api.github.com/repos/rspec/rspec-expectations/hooks","issue_events_url":"https://api.github.com/repos/rspec/rspec-expectations/issues/events{/number}","events_url":"https://api.github.com/repos/rspec/rspec-expectations/events","assignees_url":"https://api.github.com/repos/rspec/rspec-expectations/assignees{/user}","branches_url":"https://api.github.com/repos/rspec/rspec-expectations/branches{/branch}","tags_url":"https://api.github.com/repos/rspec/rspec-expectations/tags","blobs_url":"https://api.github.com/repos/rspec/rspec-expectations/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rspec/rspec-expectations/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rspec/rspec-expectations/git/refs{/sha}","trees_url":"https://api.github.com/repos/rspec/rspec-expectations/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rspec/rspec-expectations/statuses/{sha}","languages_url":"https://api.github.com/repos/rspec/rspec-expectations/languages","stargazers_url":"https://api.github.com/repos/rspec/rspec-expectations/stargazers","contributors_url":"https://api.github.com/repos/rspec/rspec-expectations/contributors","subscribers_url":"https://api.github.com/repos/rspec/rspec-expectations/subscribers","subscription_url":"https://api.github.com/repos/rspec/rspec-expectations/subscription","commits_url":"https://api.github.com/repos/rspec/rspec-expectations/commits{/sha}","git_commits_url":"https://api.github.com/repos/rspec/rspec-expectations/git/commits{/sha}","comments_url":"https://api.github.com/repos/rspec/rspec-expectations/comments{/number}","issue_comment_url":"https://api.github.com/repos/rspec/rspec-expectations/issues/comments{/number}","contents_url":"https://api.github.com/repos/rspec/rspec-expectations/contents/{+path}","compare_url":"https://api.github.com/repos/rspec/rspec-expectations/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rspec/rspec-expectations/merges","archive_url":"https://api.github.com/repos/rspec/rspec-expectations/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rspec/rspec-expectations/downloads","issues_url":"https://api.github.com/repos/rspec/rspec-expectations/issues{/number}","pulls_url":"https://api.github.com/repos/rspec/rspec-expectations/pulls{/number}","milestones_url":"https://api.github.com/repos/rspec/rspec-expectations/milestones{/number}","notifications_url":"https://api.github.com/repos/rspec/rspec-expectations/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rspec/rspec-expectations/labels{/name}","releases_url":"https://api.github.com/repos/rspec/rspec-expectations/releases{/id}","created_at":"2009-06-29T15:58:17Z","updated_at":"2015-10-10T16:00:32Z","pushed_at":"2015-10-14T04:29:01Z","git_url":"git://github.com/rspec/rspec-expectations.git","ssh_url":"git@github.com:rspec/rspec-expectations.git","clone_url":"https://github.com/rspec/rspec-expectations.git","svn_url":"https://github.com/rspec/rspec-expectations","homepage":"http://relishapp.com/rspec/rspec-expectations","size":10005,"stargazers_count":706,"watchers_count":706,"language":"Ruby","has_issues":true,"has_downloads":false,"has_wiki":false,"has_pages":false,"forks_count":236,"mirror_url":null,"open_issues_count":26,"forks":236,"open_issues":26,"watchers":706,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/rspec/rspec-expectations/pulls/862"},"html":{"href":"https://github.com/rspec/rspec-expectations/pull/862"},"issue":{"href":"https://api.github.com/repos/rspec/rspec-expectations/issues/862"},"comments":{"href":"https://api.github.com/repos/rspec/rspec-expectations/issues/862/comments"},"review_comments":{"href":"https://api.github.com/repos/rspec/rspec-expectations/pulls/862/comments"},"review_comment":{"href":"https://api.github.com/repos/rspec/rspec-expectations/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/rspec/rspec-expectations/pulls/862/commits"},"statuses":{"href":"https://api.github.com/repos/rspec/rspec-expectations/statuses/feeec80d3940cc64ad156944219218658428fff2"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":7,"deletions":1,"changed_files":2}}