{"action":"created","comment":{"url":"https://api.github.com/repos/BankFacil/zoho-crm/pulls/comments/70828235","id":70828235,"diff_hunk":"@@ -0,0 +1,144 @@\n+require 'spec_helper'\n+\n+describe ZohoCrm::Repositories::Records do\n+  it 'defines model' do\n+    expect(repository_class.model_class).to eq(model_class)\n+  end\n+\n+  it 'defines record adapter by default' do\n+    expect(repository_class.adapter).to be_kind_of(ZohoCrm::Adapters::Record)\n+  end\n+\n+  it 'sets adapter' do\n+    adapter = double\n+    repository_class.adapter = adapter\n+\n+    expect(repository_class.adapter).to eq(adapter)\n+  end\n+\n+  describe 'finding a record' do\n+    it 'delegates to adapter' do\n+      adapter = double\n+      repository_class.adapter = adapter\n+\n+      expect(adapter).to receive(:get_record).with(1)\n+\n+      result = repository_class.new.find(1)","path":"spec/repositories/records_spec.rb","position":26,"original_position":26,"commit_id":"741814ebf43c98903aaa7e4216917f61cd548d0a","original_commit_id":"741814ebf43c98903aaa7e4216917f61cd548d0a","user":{"login":"pettomartino","id":101433,"avatar_url":"https://avatars.githubusercontent.com/u/101433?v=3","gravatar_id":"","url":"https://api.github.com/users/pettomartino","html_url":"https://github.com/pettomartino","followers_url":"https://api.github.com/users/pettomartino/followers","following_url":"https://api.github.com/users/pettomartino/following{/other_user}","gists_url":"https://api.github.com/users/pettomartino/gists{/gist_id}","starred_url":"https://api.github.com/users/pettomartino/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pettomartino/subscriptions","organizations_url":"https://api.github.com/users/pettomartino/orgs","repos_url":"https://api.github.com/users/pettomartino/repos","events_url":"https://api.github.com/users/pettomartino/events{/privacy}","received_events_url":"https://api.github.com/users/pettomartino/received_events","type":"User","site_admin":false},"body":"No `core` a gente costuma usar `spy` para manter a ordem: setup, exercise, expect. Acha que não convem o `adapter` ser um `spy` ?","created_at":"2016-07-14T15:36:25Z","updated_at":"2016-07-14T15:36:25Z","html_url":"https://github.com/BankFacil/zoho-crm/pull/2#discussion_r70828235","pull_request_url":"https://api.github.com/repos/BankFacil/zoho-crm/pulls/2","_links":{"self":{"href":"https://api.github.com/repos/BankFacil/zoho-crm/pulls/comments/70828235"},"html":{"href":"https://github.com/BankFacil/zoho-crm/pull/2#discussion_r70828235"},"pull_request":{"href":"https://api.github.com/repos/BankFacil/zoho-crm/pulls/2"}}},"pull_request":{"url":"https://api.github.com/repos/BankFacil/zoho-crm/pulls/2","id":77271687,"html_url":"https://github.com/BankFacil/zoho-crm/pull/2","diff_url":"https://github.com/BankFacil/zoho-crm/pull/2.diff","patch_url":"https://github.com/BankFacil/zoho-crm/pull/2.patch","issue_url":"https://api.github.com/repos/BankFacil/zoho-crm/issues/2","number":2,"state":"open","locked":false,"title":"Add record repository","user":{"login":"j133y","id":517772,"avatar_url":"https://avatars.githubusercontent.com/u/517772?v=3","gravatar_id":"","url":"https://api.github.com/users/j133y","html_url":"https://github.com/j133y","followers_url":"https://api.github.com/users/j133y/followers","following_url":"https://api.github.com/users/j133y/following{/other_user}","gists_url":"https://api.github.com/users/j133y/gists{/gist_id}","starred_url":"https://api.github.com/users/j133y/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/j133y/subscriptions","organizations_url":"https://api.github.com/users/j133y/orgs","repos_url":"https://api.github.com/users/j133y/repos","events_url":"https://api.github.com/users/j133y/events{/privacy}","received_events_url":"https://api.github.com/users/j133y/received_events","type":"User","site_admin":false},"body":"This PR introduces the following items:\r\n\r\n- Update method on model module\r\n- Repository to interface the record adapter for querying records api","created_at":"2016-07-13T11:19:10Z","updated_at":"2016-07-14T15:36:25Z","closed_at":null,"merged_at":null,"merge_commit_sha":"1ae27a90662a10f62e0e3d1ffc57c5a537222f41","assignee":{"login":"regishideki","id":704119,"avatar_url":"https://avatars.githubusercontent.com/u/704119?v=3","gravatar_id":"","url":"https://api.github.com/users/regishideki","html_url":"https://github.com/regishideki","followers_url":"https://api.github.com/users/regishideki/followers","following_url":"https://api.github.com/users/regishideki/following{/other_user}","gists_url":"https://api.github.com/users/regishideki/gists{/gist_id}","starred_url":"https://api.github.com/users/regishideki/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/regishideki/subscriptions","organizations_url":"https://api.github.com/users/regishideki/orgs","repos_url":"https://api.github.com/users/regishideki/repos","events_url":"https://api.github.com/users/regishideki/events{/privacy}","received_events_url":"https://api.github.com/users/regishideki/received_events","type":"User","site_admin":false},"assignees":[{"login":"regishideki","id":704119,"avatar_url":"https://avatars.githubusercontent.com/u/704119?v=3","gravatar_id":"","url":"https://api.github.com/users/regishideki","html_url":"https://github.com/regishideki","followers_url":"https://api.github.com/users/regishideki/followers","following_url":"https://api.github.com/users/regishideki/following{/other_user}","gists_url":"https://api.github.com/users/regishideki/gists{/gist_id}","starred_url":"https://api.github.com/users/regishideki/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/regishideki/subscriptions","organizations_url":"https://api.github.com/users/regishideki/orgs","repos_url":"https://api.github.com/users/regishideki/repos","events_url":"https://api.github.com/users/regishideki/events{/privacy}","received_events_url":"https://api.github.com/users/regishideki/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/BankFacil/zoho-crm/pulls/2/commits","review_comments_url":"https://api.github.com/repos/BankFacil/zoho-crm/pulls/2/comments","review_comment_url":"https://api.github.com/repos/BankFacil/zoho-crm/pulls/comments{/number}","comments_url":"https://api.github.com/repos/BankFacil/zoho-crm/issues/2/comments","statuses_url":"https://api.github.com/repos/BankFacil/zoho-crm/statuses/741814ebf43c98903aaa7e4216917f61cd548d0a","head":{"label":"BankFacil:as-add-record-repository","ref":"as-add-record-repository","sha":"741814ebf43c98903aaa7e4216917f61cd548d0a","user":{"login":"BankFacil","id":1680746,"avatar_url":"https://avatars.githubusercontent.com/u/1680746?v=3","gravatar_id":"","url":"https://api.github.com/users/BankFacil","html_url":"https://github.com/BankFacil","followers_url":"https://api.github.com/users/BankFacil/followers","following_url":"https://api.github.com/users/BankFacil/following{/other_user}","gists_url":"https://api.github.com/users/BankFacil/gists{/gist_id}","starred_url":"https://api.github.com/users/BankFacil/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BankFacil/subscriptions","organizations_url":"https://api.github.com/users/BankFacil/orgs","repos_url":"https://api.github.com/users/BankFacil/repos","events_url":"https://api.github.com/users/BankFacil/events{/privacy}","received_events_url":"https://api.github.com/users/BankFacil/received_events","type":"Organization","site_admin":false},"repo":{"id":63165441,"name":"zoho-crm","full_name":"BankFacil/zoho-crm","owner":{"login":"BankFacil","id":1680746,"avatar_url":"https://avatars.githubusercontent.com/u/1680746?v=3","gravatar_id":"","url":"https://api.github.com/users/BankFacil","html_url":"https://github.com/BankFacil","followers_url":"https://api.github.com/users/BankFacil/followers","following_url":"https://api.github.com/users/BankFacil/following{/other_user}","gists_url":"https://api.github.com/users/BankFacil/gists{/gist_id}","starred_url":"https://api.github.com/users/BankFacil/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BankFacil/subscriptions","organizations_url":"https://api.github.com/users/BankFacil/orgs","repos_url":"https://api.github.com/users/BankFacil/repos","events_url":"https://api.github.com/users/BankFacil/events{/privacy}","received_events_url":"https://api.github.com/users/BankFacil/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/BankFacil/zoho-crm","description":"Gem to manage Zoho CRM resources","fork":false,"url":"https://api.github.com/repos/BankFacil/zoho-crm","forks_url":"https://api.github.com/repos/BankFacil/zoho-crm/forks","keys_url":"https://api.github.com/repos/BankFacil/zoho-crm/keys{/key_id}","collaborators_url":"https://api.github.com/repos/BankFacil/zoho-crm/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/BankFacil/zoho-crm/teams","hooks_url":"https://api.github.com/repos/BankFacil/zoho-crm/hooks","issue_events_url":"https://api.github.com/repos/BankFacil/zoho-crm/issues/events{/number}","events_url":"https://api.github.com/repos/BankFacil/zoho-crm/events","assignees_url":"https://api.github.com/repos/BankFacil/zoho-crm/assignees{/user}","branches_url":"https://api.github.com/repos/BankFacil/zoho-crm/branches{/branch}","tags_url":"https://api.github.com/repos/BankFacil/zoho-crm/tags","blobs_url":"https://api.github.com/repos/BankFacil/zoho-crm/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/BankFacil/zoho-crm/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/BankFacil/zoho-crm/git/refs{/sha}","trees_url":"https://api.github.com/repos/BankFacil/zoho-crm/git/trees{/sha}","statuses_url":"https://api.github.com/repos/BankFacil/zoho-crm/statuses/{sha}","languages_url":"https://api.github.com/repos/BankFacil/zoho-crm/languages","stargazers_url":"https://api.github.com/repos/BankFacil/zoho-crm/stargazers","contributors_url":"https://api.github.com/repos/BankFacil/zoho-crm/contributors","subscribers_url":"https://api.github.com/repos/BankFacil/zoho-crm/subscribers","subscription_url":"https://api.github.com/repos/BankFacil/zoho-crm/subscription","commits_url":"https://api.github.com/repos/BankFacil/zoho-crm/commits{/sha}","git_commits_url":"https://api.github.com/repos/BankFacil/zoho-crm/git/commits{/sha}","comments_url":"https://api.github.com/repos/BankFacil/zoho-crm/comments{/number}","issue_comment_url":"https://api.github.com/repos/BankFacil/zoho-crm/issues/comments{/number}","contents_url":"https://api.github.com/repos/BankFacil/zoho-crm/contents/{+path}","compare_url":"https://api.github.com/repos/BankFacil/zoho-crm/compare/{base}...{head}","merges_url":"https://api.github.com/repos/BankFacil/zoho-crm/merges","archive_url":"https://api.github.com/repos/BankFacil/zoho-crm/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/BankFacil/zoho-crm/downloads","issues_url":"https://api.github.com/repos/BankFacil/zoho-crm/issues{/number}","pulls_url":"https://api.github.com/repos/BankFacil/zoho-crm/pulls{/number}","milestones_url":"https://api.github.com/repos/BankFacil/zoho-crm/milestones{/number}","notifications_url":"https://api.github.com/repos/BankFacil/zoho-crm/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/BankFacil/zoho-crm/labels{/name}","releases_url":"https://api.github.com/repos/BankFacil/zoho-crm/releases{/id}","deployments_url":"https://api.github.com/repos/BankFacil/zoho-crm/deployments","created_at":"2016-07-12T14:37:03Z","updated_at":"2016-07-13T11:15:14Z","pushed_at":"2016-07-14T13:52:57Z","git_url":"git://github.com/BankFacil/zoho-crm.git","ssh_url":"git@github.com:BankFacil/zoho-crm.git","clone_url":"https://github.com/BankFacil/zoho-crm.git","svn_url":"https://github.com/BankFacil/zoho-crm","homepage":null,"size":28,"stargazers_count":1,"watchers_count":1,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":1,"default_branch":"master"}},"base":{"label":"BankFacil:master","ref":"master","sha":"7b39642f55d19c5c7e156c6af5a3900add6820ee","user":{"login":"BankFacil","id":1680746,"avatar_url":"https://avatars.githubusercontent.com/u/1680746?v=3","gravatar_id":"","url":"https://api.github.com/users/BankFacil","html_url":"https://github.com/BankFacil","followers_url":"https://api.github.com/users/BankFacil/followers","following_url":"https://api.github.com/users/BankFacil/following{/other_user}","gists_url":"https://api.github.com/users/BankFacil/gists{/gist_id}","starred_url":"https://api.github.com/users/BankFacil/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BankFacil/subscriptions","organizations_url":"https://api.github.com/users/BankFacil/orgs","repos_url":"https://api.github.com/users/BankFacil/repos","events_url":"https://api.github.com/users/BankFacil/events{/privacy}","received_events_url":"https://api.github.com/users/BankFacil/received_events","type":"Organization","site_admin":false},"repo":{"id":63165441,"name":"zoho-crm","full_name":"BankFacil/zoho-crm","owner":{"login":"BankFacil","id":1680746,"avatar_url":"https://avatars.githubusercontent.com/u/1680746?v=3","gravatar_id":"","url":"https://api.github.com/users/BankFacil","html_url":"https://github.com/BankFacil","followers_url":"https://api.github.com/users/BankFacil/followers","following_url":"https://api.github.com/users/BankFacil/following{/other_user}","gists_url":"https://api.github.com/users/BankFacil/gists{/gist_id}","starred_url":"https://api.github.com/users/BankFacil/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BankFacil/subscriptions","organizations_url":"https://api.github.com/users/BankFacil/orgs","repos_url":"https://api.github.com/users/BankFacil/repos","events_url":"https://api.github.com/users/BankFacil/events{/privacy}","received_events_url":"https://api.github.com/users/BankFacil/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/BankFacil/zoho-crm","description":"Gem to manage Zoho CRM resources","fork":false,"url":"https://api.github.com/repos/BankFacil/zoho-crm","forks_url":"https://api.github.com/repos/BankFacil/zoho-crm/forks","keys_url":"https://api.github.com/repos/BankFacil/zoho-crm/keys{/key_id}","collaborators_url":"https://api.github.com/repos/BankFacil/zoho-crm/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/BankFacil/zoho-crm/teams","hooks_url":"https://api.github.com/repos/BankFacil/zoho-crm/hooks","issue_events_url":"https://api.github.com/repos/BankFacil/zoho-crm/issues/events{/number}","events_url":"https://api.github.com/repos/BankFacil/zoho-crm/events","assignees_url":"https://api.github.com/repos/BankFacil/zoho-crm/assignees{/user}","branches_url":"https://api.github.com/repos/BankFacil/zoho-crm/branches{/branch}","tags_url":"https://api.github.com/repos/BankFacil/zoho-crm/tags","blobs_url":"https://api.github.com/repos/BankFacil/zoho-crm/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/BankFacil/zoho-crm/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/BankFacil/zoho-crm/git/refs{/sha}","trees_url":"https://api.github.com/repos/BankFacil/zoho-crm/git/trees{/sha}","statuses_url":"https://api.github.com/repos/BankFacil/zoho-crm/statuses/{sha}","languages_url":"https://api.github.com/repos/BankFacil/zoho-crm/languages","stargazers_url":"https://api.github.com/repos/BankFacil/zoho-crm/stargazers","contributors_url":"https://api.github.com/repos/BankFacil/zoho-crm/contributors","subscribers_url":"https://api.github.com/repos/BankFacil/zoho-crm/subscribers","subscription_url":"https://api.github.com/repos/BankFacil/zoho-crm/subscription","commits_url":"https://api.github.com/repos/BankFacil/zoho-crm/commits{/sha}","git_commits_url":"https://api.github.com/repos/BankFacil/zoho-crm/git/commits{/sha}","comments_url":"https://api.github.com/repos/BankFacil/zoho-crm/comments{/number}","issue_comment_url":"https://api.github.com/repos/BankFacil/zoho-crm/issues/comments{/number}","contents_url":"https://api.github.com/repos/BankFacil/zoho-crm/contents/{+path}","compare_url":"https://api.github.com/repos/BankFacil/zoho-crm/compare/{base}...{head}","merges_url":"https://api.github.com/repos/BankFacil/zoho-crm/merges","archive_url":"https://api.github.com/repos/BankFacil/zoho-crm/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/BankFacil/zoho-crm/downloads","issues_url":"https://api.github.com/repos/BankFacil/zoho-crm/issues{/number}","pulls_url":"https://api.github.com/repos/BankFacil/zoho-crm/pulls{/number}","milestones_url":"https://api.github.com/repos/BankFacil/zoho-crm/milestones{/number}","notifications_url":"https://api.github.com/repos/BankFacil/zoho-crm/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/BankFacil/zoho-crm/labels{/name}","releases_url":"https://api.github.com/repos/BankFacil/zoho-crm/releases{/id}","deployments_url":"https://api.github.com/repos/BankFacil/zoho-crm/deployments","created_at":"2016-07-12T14:37:03Z","updated_at":"2016-07-13T11:15:14Z","pushed_at":"2016-07-14T13:52:57Z","git_url":"git://github.com/BankFacil/zoho-crm.git","ssh_url":"git@github.com:BankFacil/zoho-crm.git","clone_url":"https://github.com/BankFacil/zoho-crm.git","svn_url":"https://github.com/BankFacil/zoho-crm","homepage":null,"size":28,"stargazers_count":1,"watchers_count":1,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/BankFacil/zoho-crm/pulls/2"},"html":{"href":"https://github.com/BankFacil/zoho-crm/pull/2"},"issue":{"href":"https://api.github.com/repos/BankFacil/zoho-crm/issues/2"},"comments":{"href":"https://api.github.com/repos/BankFacil/zoho-crm/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/BankFacil/zoho-crm/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/BankFacil/zoho-crm/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/BankFacil/zoho-crm/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/BankFacil/zoho-crm/statuses/741814ebf43c98903aaa7e4216917f61cd548d0a"}}}}
{"actor":{"display_login":"pettomartino"}}