{"action":"created","issue":{"url":"https://api.github.com/repos/rspec/rspec-expectations/issues/1063","repository_url":"https://api.github.com/repos/rspec/rspec-expectations","labels_url":"https://api.github.com/repos/rspec/rspec-expectations/issues/1063/labels{/name}","comments_url":"https://api.github.com/repos/rspec/rspec-expectations/issues/1063/comments","events_url":"https://api.github.com/repos/rspec/rspec-expectations/issues/1063/events","html_url":"https://github.com/rspec/rspec-expectations/issues/1063","id":335457122,"node_id":"MDU6SXNzdWUzMzU0NTcxMjI=","number":1063,"title":"to_stdout not working with Logger?","user":{"login":"jcavalieri","id":2171614,"node_id":"MDQ6VXNlcjIxNzE2MTQ=","avatar_url":"https://avatars0.githubusercontent.com/u/2171614?v=4","gravatar_id":"","url":"https://api.github.com/users/jcavalieri","html_url":"https://github.com/jcavalieri","followers_url":"https://api.github.com/users/jcavalieri/followers","following_url":"https://api.github.com/users/jcavalieri/following{/other_user}","gists_url":"https://api.github.com/users/jcavalieri/gists{/gist_id}","starred_url":"https://api.github.com/users/jcavalieri/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jcavalieri/subscriptions","organizations_url":"https://api.github.com/users/jcavalieri/orgs","repos_url":"https://api.github.com/users/jcavalieri/repos","events_url":"https://api.github.com/users/jcavalieri/events{/privacy}","received_events_url":"https://api.github.com/users/jcavalieri/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-06-25T15:28:18Z","updated_at":"2018-06-25T18:36:57Z","closed_at":"2018-06-25T17:28:26Z","author_association":"NONE","body":"### Subject of the issue\r\nI'm trying to test a custom logger, that utilizes Ruby's core logger. It appears that I can not use to_stdout or to_stderr with it. Is there some special handling going on with Logger? Or do I have something wrong with my syntax?\r\n\r\n### Your environment\r\n* ruby 2.1.10p492 (2016-04-01 revision 54464) [x86_64-darwin17.0]\r\n* rspec-expectations (~> 3.7.0)\r\n\r\n### Steps to reproduce\r\n```\r\n     Failure/Error:\r\n       expect do\r\n         logger = Logger.new(STDOUT)\r\n         logger.warn('foo')\r\n       end.to output.to_stdout\r\n\r\n       expected block to output to stdout, but did not\r\n```\r\n\r\n### Expected behavior\r\nTo be true\r\n\r\n### Actual behavior\r\n>expected block to output to stdout, but did not"},"comment":{"url":"https://api.github.com/repos/rspec/rspec-expectations/issues/comments/400052574","html_url":"https://github.com/rspec/rspec-expectations/issues/1063#issuecomment-400052574","issue_url":"https://api.github.com/repos/rspec/rspec-expectations/issues/1063","id":400052574,"node_id":"MDEyOklzc3VlQ29tbWVudDQwMDA1MjU3NA==","user":{"login":"jcavalieri","id":2171614,"node_id":"MDQ6VXNlcjIxNzE2MTQ=","avatar_url":"https://avatars0.githubusercontent.com/u/2171614?v=4","gravatar_id":"","url":"https://api.github.com/users/jcavalieri","html_url":"https://github.com/jcavalieri","followers_url":"https://api.github.com/users/jcavalieri/followers","following_url":"https://api.github.com/users/jcavalieri/following{/other_user}","gists_url":"https://api.github.com/users/jcavalieri/gists{/gist_id}","starred_url":"https://api.github.com/users/jcavalieri/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jcavalieri/subscriptions","organizations_url":"https://api.github.com/users/jcavalieri/orgs","repos_url":"https://api.github.com/users/jcavalieri/repos","events_url":"https://api.github.com/users/jcavalieri/events{/privacy}","received_events_url":"https://api.github.com/users/jcavalieri/received_events","type":"User","site_admin":false},"created_at":"2018-06-25T18:36:57Z","updated_at":"2018-06-25T18:36:57Z","author_association":"NONE","body":"Thanks @myronmarston."}}
{"actor":{"display_login":"jcavalieri"}}