{"action":"opened","number":2198,"pull_request":{"url":"https://api.github.com/repos/RestKit/RestKit/pulls/2198","id":32661361,"html_url":"https://github.com/RestKit/RestKit/pull/2198","diff_url":"https://github.com/RestKit/RestKit/pull/2198.diff","patch_url":"https://github.com/RestKit/RestKit/pull/2198.patch","issue_url":"https://api.github.com/repos/RestKit/RestKit/issues/2198","number":2198,"state":"open","locked":false,"title":"Xctest fix for class comparison","user":{"login":"darenchow","id":105291,"avatar_url":"https://avatars.githubusercontent.com/u/105291?v=3","gravatar_id":"","url":"https://api.github.com/users/darenchow","html_url":"https://github.com/darenchow","followers_url":"https://api.github.com/users/darenchow/followers","following_url":"https://api.github.com/users/darenchow/following{/other_user}","gists_url":"https://api.github.com/users/darenchow/gists{/gist_id}","starred_url":"https://api.github.com/users/darenchow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/darenchow/subscriptions","organizations_url":"https://api.github.com/users/darenchow/orgs","repos_url":"https://api.github.com/users/darenchow/repos","events_url":"https://api.github.com/users/darenchow/events{/privacy}","received_events_url":"https://api.github.com/users/darenchow/received_events","type":"User","site_admin":false},"body":"I've run into an issue where when I'm running tests (XCTest) the `routeForRelationship:ofClass:method:` method isn't able to find the route that I had set previously. \r\n\r\nFor some reason, the class comparison is failing and the pointer to the saved class is different than the pointer to the passed in class despite them being the same. So, for the fix, I've changed it from a pointer comparison to a string comparison for the class. \r\n\r\nThis doesn't seem like the best way to fix this, but it does fix the issue. Thanks!\r\n","created_at":"2015-04-06T04:27:21Z","updated_at":"2015-04-06T04:27:21Z","closed_at":null,"merged_at":null,"merge_commit_sha":"4d87e3e8a8329b5ac5ddc65778f1090fd2495351","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/RestKit/RestKit/pulls/2198/commits","review_comments_url":"https://api.github.com/repos/RestKit/RestKit/pulls/2198/comments","review_comment_url":"https://api.github.com/repos/RestKit/RestKit/pulls/comments{/number}","comments_url":"https://api.github.com/repos/RestKit/RestKit/issues/2198/comments","statuses_url":"https://api.github.com/repos/RestKit/RestKit/statuses/3e879b1b6dcb2a3bb76348ec47c5bb1e3e8c443f","head":{"label":"darenchow:xctest_fix","ref":"xctest_fix","sha":"3e879b1b6dcb2a3bb76348ec47c5bb1e3e8c443f","user":{"login":"darenchow","id":105291,"avatar_url":"https://avatars.githubusercontent.com/u/105291?v=3","gravatar_id":"","url":"https://api.github.com/users/darenchow","html_url":"https://github.com/darenchow","followers_url":"https://api.github.com/users/darenchow/followers","following_url":"https://api.github.com/users/darenchow/following{/other_user}","gists_url":"https://api.github.com/users/darenchow/gists{/gist_id}","starred_url":"https://api.github.com/users/darenchow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/darenchow/subscriptions","organizations_url":"https://api.github.com/users/darenchow/orgs","repos_url":"https://api.github.com/users/darenchow/repos","events_url":"https://api.github.com/users/darenchow/events{/privacy}","received_events_url":"https://api.github.com/users/darenchow/received_events","type":"User","site_admin":false},"repo":{"id":33465190,"name":"RestKit","full_name":"darenchow/RestKit","owner":{"login":"darenchow","id":105291,"avatar_url":"https://avatars.githubusercontent.com/u/105291?v=3","gravatar_id":"","url":"https://api.github.com/users/darenchow","html_url":"https://github.com/darenchow","followers_url":"https://api.github.com/users/darenchow/followers","following_url":"https://api.github.com/users/darenchow/following{/other_user}","gists_url":"https://api.github.com/users/darenchow/gists{/gist_id}","starred_url":"https://api.github.com/users/darenchow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/darenchow/subscriptions","organizations_url":"https://api.github.com/users/darenchow/orgs","repos_url":"https://api.github.com/users/darenchow/repos","events_url":"https://api.github.com/users/darenchow/events{/privacy}","received_events_url":"https://api.github.com/users/darenchow/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/darenchow/RestKit","description":"RestKit is a framework for consuming and modeling RESTful web resources on iOS and OS X","fork":true,"url":"https://api.github.com/repos/darenchow/RestKit","forks_url":"https://api.github.com/repos/darenchow/RestKit/forks","keys_url":"https://api.github.com/repos/darenchow/RestKit/keys{/key_id}","collaborators_url":"https://api.github.com/repos/darenchow/RestKit/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/darenchow/RestKit/teams","hooks_url":"https://api.github.com/repos/darenchow/RestKit/hooks","issue_events_url":"https://api.github.com/repos/darenchow/RestKit/issues/events{/number}","events_url":"https://api.github.com/repos/darenchow/RestKit/events","assignees_url":"https://api.github.com/repos/darenchow/RestKit/assignees{/user}","branches_url":"https://api.github.com/repos/darenchow/RestKit/branches{/branch}","tags_url":"https://api.github.com/repos/darenchow/RestKit/tags","blobs_url":"https://api.github.com/repos/darenchow/RestKit/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/darenchow/RestKit/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/darenchow/RestKit/git/refs{/sha}","trees_url":"https://api.github.com/repos/darenchow/RestKit/git/trees{/sha}","statuses_url":"https://api.github.com/repos/darenchow/RestKit/statuses/{sha}","languages_url":"https://api.github.com/repos/darenchow/RestKit/languages","stargazers_url":"https://api.github.com/repos/darenchow/RestKit/stargazers","contributors_url":"https://api.github.com/repos/darenchow/RestKit/contributors","subscribers_url":"https://api.github.com/repos/darenchow/RestKit/subscribers","subscription_url":"https://api.github.com/repos/darenchow/RestKit/subscription","commits_url":"https://api.github.com/repos/darenchow/RestKit/commits{/sha}","git_commits_url":"https://api.github.com/repos/darenchow/RestKit/git/commits{/sha}","comments_url":"https://api.github.com/repos/darenchow/RestKit/comments{/number}","issue_comment_url":"https://api.github.com/repos/darenchow/RestKit/issues/comments{/number}","contents_url":"https://api.github.com/repos/darenchow/RestKit/contents/{+path}","compare_url":"https://api.github.com/repos/darenchow/RestKit/compare/{base}...{head}","merges_url":"https://api.github.com/repos/darenchow/RestKit/merges","archive_url":"https://api.github.com/repos/darenchow/RestKit/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/darenchow/RestKit/downloads","issues_url":"https://api.github.com/repos/darenchow/RestKit/issues{/number}","pulls_url":"https://api.github.com/repos/darenchow/RestKit/pulls{/number}","milestones_url":"https://api.github.com/repos/darenchow/RestKit/milestones{/number}","notifications_url":"https://api.github.com/repos/darenchow/RestKit/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/darenchow/RestKit/labels{/name}","releases_url":"https://api.github.com/repos/darenchow/RestKit/releases{/id}","created_at":"2015-04-06T03:38:08Z","updated_at":"2015-04-06T03:38:11Z","pushed_at":"2015-04-06T03:45:53Z","git_url":"git://github.com/darenchow/RestKit.git","ssh_url":"git@github.com:darenchow/RestKit.git","clone_url":"https://github.com/darenchow/RestKit.git","svn_url":"https://github.com/darenchow/RestKit","homepage":"http://www.restkit.org/","size":68887,"stargazers_count":0,"watchers_count":0,"language":"Objective-C","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"development"}},"base":{"label":"RestKit:master","ref":"master","sha":"0b898aa600da999fe328fde38f74fc6a0ebe0123","user":{"login":"RestKit","id":903233,"avatar_url":"https://avatars.githubusercontent.com/u/903233?v=3","gravatar_id":"","url":"https://api.github.com/users/RestKit","html_url":"https://github.com/RestKit","followers_url":"https://api.github.com/users/RestKit/followers","following_url":"https://api.github.com/users/RestKit/following{/other_user}","gists_url":"https://api.github.com/users/RestKit/gists{/gist_id}","starred_url":"https://api.github.com/users/RestKit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RestKit/subscriptions","organizations_url":"https://api.github.com/users/RestKit/orgs","repos_url":"https://api.github.com/users/RestKit/repos","events_url":"https://api.github.com/users/RestKit/events{/privacy}","received_events_url":"https://api.github.com/users/RestKit/received_events","type":"Organization","site_admin":false},"repo":{"id":508845,"name":"RestKit","full_name":"RestKit/RestKit","owner":{"login":"RestKit","id":903233,"avatar_url":"https://avatars.githubusercontent.com/u/903233?v=3","gravatar_id":"","url":"https://api.github.com/users/RestKit","html_url":"https://github.com/RestKit","followers_url":"https://api.github.com/users/RestKit/followers","following_url":"https://api.github.com/users/RestKit/following{/other_user}","gists_url":"https://api.github.com/users/RestKit/gists{/gist_id}","starred_url":"https://api.github.com/users/RestKit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RestKit/subscriptions","organizations_url":"https://api.github.com/users/RestKit/orgs","repos_url":"https://api.github.com/users/RestKit/repos","events_url":"https://api.github.com/users/RestKit/events{/privacy}","received_events_url":"https://api.github.com/users/RestKit/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/RestKit/RestKit","description":"RestKit is a framework for consuming and modeling RESTful web resources on iOS and OS X","fork":false,"url":"https://api.github.com/repos/RestKit/RestKit","forks_url":"https://api.github.com/repos/RestKit/RestKit/forks","keys_url":"https://api.github.com/repos/RestKit/RestKit/keys{/key_id}","collaborators_url":"https://api.github.com/repos/RestKit/RestKit/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/RestKit/RestKit/teams","hooks_url":"https://api.github.com/repos/RestKit/RestKit/hooks","issue_events_url":"https://api.github.com/repos/RestKit/RestKit/issues/events{/number}","events_url":"https://api.github.com/repos/RestKit/RestKit/events","assignees_url":"https://api.github.com/repos/RestKit/RestKit/assignees{/user}","branches_url":"https://api.github.com/repos/RestKit/RestKit/branches{/branch}","tags_url":"https://api.github.com/repos/RestKit/RestKit/tags","blobs_url":"https://api.github.com/repos/RestKit/RestKit/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/RestKit/RestKit/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/RestKit/RestKit/git/refs{/sha}","trees_url":"https://api.github.com/repos/RestKit/RestKit/git/trees{/sha}","statuses_url":"https://api.github.com/repos/RestKit/RestKit/statuses/{sha}","languages_url":"https://api.github.com/repos/RestKit/RestKit/languages","stargazers_url":"https://api.github.com/repos/RestKit/RestKit/stargazers","contributors_url":"https://api.github.com/repos/RestKit/RestKit/contributors","subscribers_url":"https://api.github.com/repos/RestKit/RestKit/subscribers","subscription_url":"https://api.github.com/repos/RestKit/RestKit/subscription","commits_url":"https://api.github.com/repos/RestKit/RestKit/commits{/sha}","git_commits_url":"https://api.github.com/repos/RestKit/RestKit/git/commits{/sha}","comments_url":"https://api.github.com/repos/RestKit/RestKit/comments{/number}","issue_comment_url":"https://api.github.com/repos/RestKit/RestKit/issues/comments{/number}","contents_url":"https://api.github.com/repos/RestKit/RestKit/contents/{+path}","compare_url":"https://api.github.com/repos/RestKit/RestKit/compare/{base}...{head}","merges_url":"https://api.github.com/repos/RestKit/RestKit/merges","archive_url":"https://api.github.com/repos/RestKit/RestKit/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/RestKit/RestKit/downloads","issues_url":"https://api.github.com/repos/RestKit/RestKit/issues{/number}","pulls_url":"https://api.github.com/repos/RestKit/RestKit/pulls{/number}","milestones_url":"https://api.github.com/repos/RestKit/RestKit/milestones{/number}","notifications_url":"https://api.github.com/repos/RestKit/RestKit/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/RestKit/RestKit/labels{/name}","releases_url":"https://api.github.com/repos/RestKit/RestKit/releases{/id}","created_at":"2010-02-09T01:14:06Z","updated_at":"2015-04-06T03:17:27Z","pushed_at":"2015-04-06T04:27:21Z","git_url":"git://github.com/RestKit/RestKit.git","ssh_url":"git@github.com:RestKit/RestKit.git","clone_url":"https://github.com/RestKit/RestKit.git","svn_url":"https://github.com/RestKit/RestKit","homepage":"http://www.restkit.org/","size":68887,"stargazers_count":7793,"watchers_count":7793,"language":"Objective-C","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1838,"mirror_url":null,"open_issues_count":246,"forks":1838,"open_issues":246,"watchers":7793,"default_branch":"development"}},"_links":{"self":{"href":"https://api.github.com/repos/RestKit/RestKit/pulls/2198"},"html":{"href":"https://github.com/RestKit/RestKit/pull/2198"},"issue":{"href":"https://api.github.com/repos/RestKit/RestKit/issues/2198"},"comments":{"href":"https://api.github.com/repos/RestKit/RestKit/issues/2198/comments"},"review_comments":{"href":"https://api.github.com/repos/RestKit/RestKit/pulls/2198/comments"},"review_comment":{"href":"https://api.github.com/repos/RestKit/RestKit/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/RestKit/RestKit/pulls/2198/commits"},"statuses":{"href":"https://api.github.com/repos/RestKit/RestKit/statuses/3e879b1b6dcb2a3bb76348ec47c5bb1e3e8c443f"}},"merged":false,"mergeable":true,"mergeable_state":"clean","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":3,"deletions":1,"changed_files":1}}