{"action":"created","issue":{"url":"https://api.github.com/repos/specta/expecta/issues/155","labels_url":"https://api.github.com/repos/specta/expecta/issues/155/labels{/name}","comments_url":"https://api.github.com/repos/specta/expecta/issues/155/comments","events_url":"https://api.github.com/repos/specta/expecta/issues/155/events","html_url":"https://github.com/specta/expecta/issues/155","id":92932577,"number":155,"title":"beInstanceOf causes failing test when it should pass","user":{"login":"markeissler","id":2679087,"avatar_url":"https://avatars.githubusercontent.com/u/2679087?v=3","gravatar_id":"","url":"https://api.github.com/users/markeissler","html_url":"https://github.com/markeissler","followers_url":"https://api.github.com/users/markeissler/followers","following_url":"https://api.github.com/users/markeissler/following{/other_user}","gists_url":"https://api.github.com/users/markeissler/gists{/gist_id}","starred_url":"https://api.github.com/users/markeissler/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/markeissler/subscriptions","organizations_url":"https://api.github.com/users/markeissler/orgs","repos_url":"https://api.github.com/users/markeissler/repos","events_url":"https://api.github.com/users/markeissler/events{/privacy}","received_events_url":"https://api.github.com/users/markeissler/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-07-03T20:31:27Z","updated_at":"2015-07-05T23:31:40Z","closed_at":null,"body":"I'm reopening this issue, originally reported as #123. This matcher is broken, or at least the description of its use is incorrect:\r\n\r\n    expect(x).to.beInstanceOf([Foo class]); passes if x is an instance of a class Foo\r\n\r\nAccording to that description, as long as the comparison object on the left is exactly of type `[Foo class]` then the test should pass. In comparison, the companion matcher:\r\n\r\n    expect(x).to.beKindOf([Foo class]); passes if x is an instance of a class Foo or if x is an\r\n    instance of any class that inherits from the class Foo.\r\n\r\nImplies that the comparison object on the left could be either of type `[Foo class]` or a subclass.\r\n\r\nI'm getting the exact result as the original reporter:\r\n\r\n    expected: an instance of Foo, got an instance of Foo\r\n\r\nWhat I'm expecting, is to get the same result as returned by:\r\n\r\n    expect([object class]).to.equal([Foo class]);\r\n\r\nEither the implementation is incorrect, the documentation is incorrect, or the error is incorrect.\r\n"},"comment":{"url":"https://api.github.com/repos/specta/expecta/issues/comments/118676619","html_url":"https://github.com/specta/expecta/issues/155#issuecomment-118676619","issue_url":"https://api.github.com/repos/specta/expecta/issues/155","id":118676619,"user":{"login":"markeissler","id":2679087,"avatar_url":"https://avatars.githubusercontent.com/u/2679087?v=3","gravatar_id":"","url":"https://api.github.com/users/markeissler","html_url":"https://github.com/markeissler","followers_url":"https://api.github.com/users/markeissler/followers","following_url":"https://api.github.com/users/markeissler/following{/other_user}","gists_url":"https://api.github.com/users/markeissler/gists{/gist_id}","starred_url":"https://api.github.com/users/markeissler/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/markeissler/subscriptions","organizations_url":"https://api.github.com/users/markeissler/orgs","repos_url":"https://api.github.com/users/markeissler/repos","events_url":"https://api.github.com/users/markeissler/events{/privacy}","received_events_url":"https://api.github.com/users/markeissler/received_events","type":"User","site_admin":false},"created_at":"2015-07-05T23:31:40Z","updated_at":"2015-07-05T23:31:40Z","body":"Well my Podfile has this already...\r\n\r\n```\r\ntarget :WonderAppTests, :exclusive => true do\r\n  pod 'Specta', '~> 0.5'\r\n  pod 'Expecta', '~> 0.3'\r\n  pod 'OCMock', '~> 3.0'\r\nend\r\n```"}}