{"action":"created","issue":{"url":"https://api.github.com/repos/rspec/rspec-support/issues/215","labels_url":"https://api.github.com/repos/rspec/rspec-support/issues/215/labels{/name}","comments_url":"https://api.github.com/repos/rspec/rspec-support/issues/215/comments","events_url":"https://api.github.com/repos/rspec/rspec-support/issues/215/events","html_url":"https://github.com/rspec/rspec-support/pull/215","id":88783678,"number":215,"title":"Include delegators in inspection output","user":{"login":"ahorner","id":116396,"avatar_url":"https://avatars.githubusercontent.com/u/116396?v=3","gravatar_id":"","url":"https://api.github.com/users/ahorner","html_url":"https://github.com/ahorner","followers_url":"https://api.github.com/users/ahorner/followers","following_url":"https://api.github.com/users/ahorner/following{/other_user}","gists_url":"https://api.github.com/users/ahorner/gists{/gist_id}","starred_url":"https://api.github.com/users/ahorner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ahorner/subscriptions","organizations_url":"https://api.github.com/users/ahorner/orgs","repos_url":"https://api.github.com/users/ahorner/repos","events_url":"https://api.github.com/users/ahorner/events{/privacy}","received_events_url":"https://api.github.com/users/ahorner/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-06-16T17:02:20Z","updated_at":"2015-06-16T17:25:45Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/rspec/rspec-support/pulls/215","html_url":"https://github.com/rspec/rspec-support/pull/215","diff_url":"https://github.com/rspec/rspec-support/pull/215.diff","patch_url":"https://github.com/rspec/rspec-support/pull/215.patch"},"body":"In current spec output, it’s not immediately obvious when an object\r\nunder test is actually wrapped in a delegator of some sort, which can \r\nlead to some tricky-to-track-down failures on equality checks for two \r\nseemingly-identical objects.\r\n\r\nThe fix proposed here is to toss objects into a special wrapper when we \r\nprepare them for inspection. This wrapper recursively modifies the \r\nobject’s inspection string with delegator class information, which\r\nshould make it much more apparent when the object under test is wrapped\r\nby a delegator of some sort.\r\n\r\nRelated to https://github.com/rspec/rspec-core/issues/1995."},"comment":{"url":"https://api.github.com/repos/rspec/rspec-support/issues/comments/112504747","html_url":"https://github.com/rspec/rspec-support/pull/215#issuecomment-112504747","issue_url":"https://api.github.com/repos/rspec/rspec-support/issues/215","id":112504747,"user":{"login":"ahorner","id":116396,"avatar_url":"https://avatars.githubusercontent.com/u/116396?v=3","gravatar_id":"","url":"https://api.github.com/users/ahorner","html_url":"https://github.com/ahorner","followers_url":"https://api.github.com/users/ahorner/followers","following_url":"https://api.github.com/users/ahorner/following{/other_user}","gists_url":"https://api.github.com/users/ahorner/gists{/gist_id}","starred_url":"https://api.github.com/users/ahorner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ahorner/subscriptions","organizations_url":"https://api.github.com/users/ahorner/orgs","repos_url":"https://api.github.com/users/ahorner/repos","events_url":"https://api.github.com/users/ahorner/events{/privacy}","received_events_url":"https://api.github.com/users/ahorner/received_events","type":"User","site_admin":false},"created_at":"2015-06-16T17:25:45Z","updated_at":"2015-06-16T17:25:45Z","body":"That approach does seem considerably safer. I've gone with that implementation."}}