{"action":"created","comment":{"url":"https://api.github.com/repos/smartscheduling/chatto-hub/pulls/comments/36121192","id":36121192,"diff_hunk":"@@ -25,17 +39,32 @@\n     end\n   end\n \n-  describe \"#create_team\" do\n-    it \"sends a post to the api with name/description parameters\" do\n-      name = \"Project name\"\n-      desc = \"Project description\"\n+  describe \"#create_org_repo\" do\n+    it \"calls POST with proper parameters\" do\n+      github_url = \"https://api.github.com/orgs/chatto-hub-test2/repos\"\n+      expect(RestClient::Resource).to receive(:new).with(github_url, \"example_user\", \"example_password\").\n+        and_return(double(post: {}.to_json))\n+      subject.create_org_repo\n+    end\n+  end\n \n-      expect_any_instance_of(RestClient::Resource).to receive(:post).with(\n-        { name: name, description: desc }.to_json,\n-        content_type: \"application/json\"\n-      ).and_return({ ok: true }.to_json)\n+  describe \"#fork_repo\" do\n+    before do\n+      ENV['CHATTO_HUB_ADMIN_GIT_FORK_SH'] = \"fork_sh\"\n+      ENV['CHATTO_HUB_ADMIN_GIT_USER'] = \"git_user\"\n+      ENV['ROOT_REPO_URI'] = \"root_repo\"\n+    end\n \n-      subject.create_team(name, desc)\n+    it \"executes sh script\" do\n+      expect(subject).to receive(:system).with(\n+        'sh',\n+        'fork_sh',\n+        'git_user',\n+        'root_repo',\n+        'example_project',","path":"spec/lib/github_adapter_spec.rb","position":63,"original_position":63,"commit_id":"a1314a0c2c5a2bc48a34145f870c51c990bd5dfb","original_commit_id":"a1314a0c2c5a2bc48a34145f870c51c990bd5dfb","user":{"login":"houndci","id":6697940,"avatar_url":"https://avatars.githubusercontent.com/u/6697940?v=3","gravatar_id":"","url":"https://api.github.com/users/houndci","html_url":"https://github.com/houndci","followers_url":"https://api.github.com/users/houndci/followers","following_url":"https://api.github.com/users/houndci/following{/other_user}","gists_url":"https://api.github.com/users/houndci/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci/subscriptions","organizations_url":"https://api.github.com/users/houndci/orgs","repos_url":"https://api.github.com/users/houndci/repos","events_url":"https://api.github.com/users/houndci/events{/privacy}","received_events_url":"https://api.github.com/users/houndci/received_events","type":"User","site_admin":false},"body":"Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping.","created_at":"2015-08-03T19:26:40Z","updated_at":"2015-08-03T19:26:40Z","html_url":"https://github.com/smartscheduling/chatto-hub/pull/48#discussion_r36121192","pull_request_url":"https://api.github.com/repos/smartscheduling/chatto-hub/pulls/48","_links":{"self":{"href":"https://api.github.com/repos/smartscheduling/chatto-hub/pulls/comments/36121192"},"html":{"href":"https://github.com/smartscheduling/chatto-hub/pull/48#discussion_r36121192"},"pull_request":{"href":"https://api.github.com/repos/smartscheduling/chatto-hub/pulls/48"}}},"pull_request":{"url":"https://api.github.com/repos/smartscheduling/chatto-hub/pulls/48","id":41360122,"html_url":"https://github.com/smartscheduling/chatto-hub/pull/48","diff_url":"https://github.com/smartscheduling/chatto-hub/pull/48.diff","patch_url":"https://github.com/smartscheduling/chatto-hub/pull/48.patch","issue_url":"https://api.github.com/repos/smartscheduling/chatto-hub/issues/48","number":48,"state":"open","locked":false,"title":"[Resolves smartscheduling/chatto#97] Github automatic repo forking for new projects","user":{"login":"SpencerCDixon","id":7471018,"avatar_url":"https://avatars.githubusercontent.com/u/7471018?v=3","gravatar_id":"","url":"https://api.github.com/users/SpencerCDixon","html_url":"https://github.com/SpencerCDixon","followers_url":"https://api.github.com/users/SpencerCDixon/followers","following_url":"https://api.github.com/users/SpencerCDixon/following{/other_user}","gists_url":"https://api.github.com/users/SpencerCDixon/gists{/gist_id}","starred_url":"https://api.github.com/users/SpencerCDixon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SpencerCDixon/subscriptions","organizations_url":"https://api.github.com/users/SpencerCDixon/orgs","repos_url":"https://api.github.com/users/SpencerCDixon/repos","events_url":"https://api.github.com/users/SpencerCDixon/events{/privacy}","received_events_url":"https://api.github.com/users/SpencerCDixon/received_events","type":"User","site_admin":false},"body":"smartscheduling/chatto#97","created_at":"2015-07-31T17:06:55Z","updated_at":"2015-08-03T19:26:41Z","closed_at":null,"merged_at":null,"merge_commit_sha":"68eef02d24615878ed9ea2f61f064554d12d70e9","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/smartscheduling/chatto-hub/pulls/48/commits","review_comments_url":"https://api.github.com/repos/smartscheduling/chatto-hub/pulls/48/comments","review_comment_url":"https://api.github.com/repos/smartscheduling/chatto-hub/pulls/comments{/number}","comments_url":"https://api.github.com/repos/smartscheduling/chatto-hub/issues/48/comments","statuses_url":"https://api.github.com/repos/smartscheduling/chatto-hub/statuses/a1314a0c2c5a2bc48a34145f870c51c990bd5dfb","head":{"label":"smartscheduling:sd-ghub-auto-forking","ref":"sd-ghub-auto-forking","sha":"a1314a0c2c5a2bc48a34145f870c51c990bd5dfb","user":{"login":"smartscheduling","id":2175709,"avatar_url":"https://avatars.githubusercontent.com/u/2175709?v=3","gravatar_id":"","url":"https://api.github.com/users/smartscheduling","html_url":"https://github.com/smartscheduling","followers_url":"https://api.github.com/users/smartscheduling/followers","following_url":"https://api.github.com/users/smartscheduling/following{/other_user}","gists_url":"https://api.github.com/users/smartscheduling/gists{/gist_id}","starred_url":"https://api.github.com/users/smartscheduling/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/smartscheduling/subscriptions","organizations_url":"https://api.github.com/users/smartscheduling/orgs","repos_url":"https://api.github.com/users/smartscheduling/repos","events_url":"https://api.github.com/users/smartscheduling/events{/privacy}","received_events_url":"https://api.github.com/users/smartscheduling/received_events","type":"Organization","site_admin":false},"repo":{"id":37095119,"name":"chatto-hub","full_name":"smartscheduling/chatto-hub","owner":{"login":"smartscheduling","id":2175709,"avatar_url":"https://avatars.githubusercontent.com/u/2175709?v=3","gravatar_id":"","url":"https://api.github.com/users/smartscheduling","html_url":"https://github.com/smartscheduling","followers_url":"https://api.github.com/users/smartscheduling/followers","following_url":"https://api.github.com/users/smartscheduling/following{/other_user}","gists_url":"https://api.github.com/users/smartscheduling/gists{/gist_id}","starred_url":"https://api.github.com/users/smartscheduling/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/smartscheduling/subscriptions","organizations_url":"https://api.github.com/users/smartscheduling/orgs","repos_url":"https://api.github.com/users/smartscheduling/repos","events_url":"https://api.github.com/users/smartscheduling/events{/privacy}","received_events_url":"https://api.github.com/users/smartscheduling/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/smartscheduling/chatto-hub","description":"Github for Data Scientists ","fork":false,"url":"https://api.github.com/repos/smartscheduling/chatto-hub","forks_url":"https://api.github.com/repos/smartscheduling/chatto-hub/forks","keys_url":"https://api.github.com/repos/smartscheduling/chatto-hub/keys{/key_id}","collaborators_url":"https://api.github.com/repos/smartscheduling/chatto-hub/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/smartscheduling/chatto-hub/teams","hooks_url":"https://api.github.com/repos/smartscheduling/chatto-hub/hooks","issue_events_url":"https://api.github.com/repos/smartscheduling/chatto-hub/issues/events{/number}","events_url":"https://api.github.com/repos/smartscheduling/chatto-hub/events","assignees_url":"https://api.github.com/repos/smartscheduling/chatto-hub/assignees{/user}","branches_url":"https://api.github.com/repos/smartscheduling/chatto-hub/branches{/branch}","tags_url":"https://api.github.com/repos/smartscheduling/chatto-hub/tags","blobs_url":"https://api.github.com/repos/smartscheduling/chatto-hub/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/smartscheduling/chatto-hub/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/smartscheduling/chatto-hub/git/refs{/sha}","trees_url":"https://api.github.com/repos/smartscheduling/chatto-hub/git/trees{/sha}","statuses_url":"https://api.github.com/repos/smartscheduling/chatto-hub/statuses/{sha}","languages_url":"https://api.github.com/repos/smartscheduling/chatto-hub/languages","stargazers_url":"https://api.github.com/repos/smartscheduling/chatto-hub/stargazers","contributors_url":"https://api.github.com/repos/smartscheduling/chatto-hub/contributors","subscribers_url":"https://api.github.com/repos/smartscheduling/chatto-hub/subscribers","subscription_url":"https://api.github.com/repos/smartscheduling/chatto-hub/subscription","commits_url":"https://api.github.com/repos/smartscheduling/chatto-hub/commits{/sha}","git_commits_url":"https://api.github.com/repos/smartscheduling/chatto-hub/git/commits{/sha}","comments_url":"https://api.github.com/repos/smartscheduling/chatto-hub/comments{/number}","issue_comment_url":"https://api.github.com/repos/smartscheduling/chatto-hub/issues/comments{/number}","contents_url":"https://api.github.com/repos/smartscheduling/chatto-hub/contents/{+path}","compare_url":"https://api.github.com/repos/smartscheduling/chatto-hub/compare/{base}...{head}","merges_url":"https://api.github.com/repos/smartscheduling/chatto-hub/merges","archive_url":"https://api.github.com/repos/smartscheduling/chatto-hub/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/smartscheduling/chatto-hub/downloads","issues_url":"https://api.github.com/repos/smartscheduling/chatto-hub/issues{/number}","pulls_url":"https://api.github.com/repos/smartscheduling/chatto-hub/pulls{/number}","milestones_url":"https://api.github.com/repos/smartscheduling/chatto-hub/milestones{/number}","notifications_url":"https://api.github.com/repos/smartscheduling/chatto-hub/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/smartscheduling/chatto-hub/labels{/name}","releases_url":"https://api.github.com/repos/smartscheduling/chatto-hub/releases{/id}","created_at":"2015-06-08T21:55:36Z","updated_at":"2015-07-30T15:55:48Z","pushed_at":"2015-08-03T19:26:36Z","git_url":"git://github.com/smartscheduling/chatto-hub.git","ssh_url":"git@github.com:smartscheduling/chatto-hub.git","clone_url":"https://github.com/smartscheduling/chatto-hub.git","svn_url":"https://github.com/smartscheduling/chatto-hub","homepage":null,"size":512,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":16,"forks":0,"open_issues":16,"watchers":0,"default_branch":"master"}},"base":{"label":"smartscheduling:master","ref":"master","sha":"b44ca234e0b5462e2684d58a18e4f22a068882cc","user":{"login":"smartscheduling","id":2175709,"avatar_url":"https://avatars.githubusercontent.com/u/2175709?v=3","gravatar_id":"","url":"https://api.github.com/users/smartscheduling","html_url":"https://github.com/smartscheduling","followers_url":"https://api.github.com/users/smartscheduling/followers","following_url":"https://api.github.com/users/smartscheduling/following{/other_user}","gists_url":"https://api.github.com/users/smartscheduling/gists{/gist_id}","starred_url":"https://api.github.com/users/smartscheduling/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/smartscheduling/subscriptions","organizations_url":"https://api.github.com/users/smartscheduling/orgs","repos_url":"https://api.github.com/users/smartscheduling/repos","events_url":"https://api.github.com/users/smartscheduling/events{/privacy}","received_events_url":"https://api.github.com/users/smartscheduling/received_events","type":"Organization","site_admin":false},"repo":{"id":37095119,"name":"chatto-hub","full_name":"smartscheduling/chatto-hub","owner":{"login":"smartscheduling","id":2175709,"avatar_url":"https://avatars.githubusercontent.com/u/2175709?v=3","gravatar_id":"","url":"https://api.github.com/users/smartscheduling","html_url":"https://github.com/smartscheduling","followers_url":"https://api.github.com/users/smartscheduling/followers","following_url":"https://api.github.com/users/smartscheduling/following{/other_user}","gists_url":"https://api.github.com/users/smartscheduling/gists{/gist_id}","starred_url":"https://api.github.com/users/smartscheduling/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/smartscheduling/subscriptions","organizations_url":"https://api.github.com/users/smartscheduling/orgs","repos_url":"https://api.github.com/users/smartscheduling/repos","events_url":"https://api.github.com/users/smartscheduling/events{/privacy}","received_events_url":"https://api.github.com/users/smartscheduling/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/smartscheduling/chatto-hub","description":"Github for Data Scientists ","fork":false,"url":"https://api.github.com/repos/smartscheduling/chatto-hub","forks_url":"https://api.github.com/repos/smartscheduling/chatto-hub/forks","keys_url":"https://api.github.com/repos/smartscheduling/chatto-hub/keys{/key_id}","collaborators_url":"https://api.github.com/repos/smartscheduling/chatto-hub/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/smartscheduling/chatto-hub/teams","hooks_url":"https://api.github.com/repos/smartscheduling/chatto-hub/hooks","issue_events_url":"https://api.github.com/repos/smartscheduling/chatto-hub/issues/events{/number}","events_url":"https://api.github.com/repos/smartscheduling/chatto-hub/events","assignees_url":"https://api.github.com/repos/smartscheduling/chatto-hub/assignees{/user}","branches_url":"https://api.github.com/repos/smartscheduling/chatto-hub/branches{/branch}","tags_url":"https://api.github.com/repos/smartscheduling/chatto-hub/tags","blobs_url":"https://api.github.com/repos/smartscheduling/chatto-hub/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/smartscheduling/chatto-hub/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/smartscheduling/chatto-hub/git/refs{/sha}","trees_url":"https://api.github.com/repos/smartscheduling/chatto-hub/git/trees{/sha}","statuses_url":"https://api.github.com/repos/smartscheduling/chatto-hub/statuses/{sha}","languages_url":"https://api.github.com/repos/smartscheduling/chatto-hub/languages","stargazers_url":"https://api.github.com/repos/smartscheduling/chatto-hub/stargazers","contributors_url":"https://api.github.com/repos/smartscheduling/chatto-hub/contributors","subscribers_url":"https://api.github.com/repos/smartscheduling/chatto-hub/subscribers","subscription_url":"https://api.github.com/repos/smartscheduling/chatto-hub/subscription","commits_url":"https://api.github.com/repos/smartscheduling/chatto-hub/commits{/sha}","git_commits_url":"https://api.github.com/repos/smartscheduling/chatto-hub/git/commits{/sha}","comments_url":"https://api.github.com/repos/smartscheduling/chatto-hub/comments{/number}","issue_comment_url":"https://api.github.com/repos/smartscheduling/chatto-hub/issues/comments{/number}","contents_url":"https://api.github.com/repos/smartscheduling/chatto-hub/contents/{+path}","compare_url":"https://api.github.com/repos/smartscheduling/chatto-hub/compare/{base}...{head}","merges_url":"https://api.github.com/repos/smartscheduling/chatto-hub/merges","archive_url":"https://api.github.com/repos/smartscheduling/chatto-hub/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/smartscheduling/chatto-hub/downloads","issues_url":"https://api.github.com/repos/smartscheduling/chatto-hub/issues{/number}","pulls_url":"https://api.github.com/repos/smartscheduling/chatto-hub/pulls{/number}","milestones_url":"https://api.github.com/repos/smartscheduling/chatto-hub/milestones{/number}","notifications_url":"https://api.github.com/repos/smartscheduling/chatto-hub/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/smartscheduling/chatto-hub/labels{/name}","releases_url":"https://api.github.com/repos/smartscheduling/chatto-hub/releases{/id}","created_at":"2015-06-08T21:55:36Z","updated_at":"2015-07-30T15:55:48Z","pushed_at":"2015-08-03T19:26:36Z","git_url":"git://github.com/smartscheduling/chatto-hub.git","ssh_url":"git@github.com:smartscheduling/chatto-hub.git","clone_url":"https://github.com/smartscheduling/chatto-hub.git","svn_url":"https://github.com/smartscheduling/chatto-hub","homepage":null,"size":512,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":16,"forks":0,"open_issues":16,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/smartscheduling/chatto-hub/pulls/48"},"html":{"href":"https://github.com/smartscheduling/chatto-hub/pull/48"},"issue":{"href":"https://api.github.com/repos/smartscheduling/chatto-hub/issues/48"},"comments":{"href":"https://api.github.com/repos/smartscheduling/chatto-hub/issues/48/comments"},"review_comments":{"href":"https://api.github.com/repos/smartscheduling/chatto-hub/pulls/48/comments"},"review_comment":{"href":"https://api.github.com/repos/smartscheduling/chatto-hub/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/smartscheduling/chatto-hub/pulls/48/commits"},"statuses":{"href":"https://api.github.com/repos/smartscheduling/chatto-hub/statuses/a1314a0c2c5a2bc48a34145f870c51c990bd5dfb"}}}}