{"action":"created","comment":{"url":"https://api.github.com/repos/t584/myflix/pulls/comments/39255739","id":39255739,"diff_hunk":"@@ -0,0 +1,84 @@\n+require 'spec_helper'\n+\n+describe UserSignup do\n+  describe \"#sign_up\" do\n+    context \"valid personal info and valid card\" do\n+      let(:charge) { double(:charge, successful?: true) }\n+\n+      before do\n+        StripeWrapper::Charge.should_receive(:create).and_return(charge)\n+      end\n+\n+      after do\n+        ActionMailer::Base.deliveries.clear\n+      end\n+\n+      it \"creates a user\" do\n+        UserSignup.new(Fabricate.build(:user)).sign_up(\"some_stripe_token\", nil)","path":"spec/services/user_signup_spec.rb","position":17,"original_position":17,"commit_id":"717a3d33325ab98a85f7b52ace0eebf7c6238642","original_commit_id":"717a3d33325ab98a85f7b52ace0eebf7c6238642","user":{"login":"tomtomecek","id":7385469,"avatar_url":"https://avatars.githubusercontent.com/u/7385469?v=3","gravatar_id":"","url":"https://api.github.com/users/tomtomecek","html_url":"https://github.com/tomtomecek","followers_url":"https://api.github.com/users/tomtomecek/followers","following_url":"https://api.github.com/users/tomtomecek/following{/other_user}","gists_url":"https://api.github.com/users/tomtomecek/gists{/gist_id}","starred_url":"https://api.github.com/users/tomtomecek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tomtomecek/subscriptions","organizations_url":"https://api.github.com/users/tomtomecek/orgs","repos_url":"https://api.github.com/users/tomtomecek/repos","events_url":"https://api.github.com/users/tomtomecek/events{/privacy}","received_events_url":"https://api.github.com/users/tomtomecek/received_events","type":"User","site_admin":false},"body":"It is a bit strange to pass `nil` as argument. Maybe you could make `nil` as default value in the implementation rather than required.","created_at":"2015-09-11T09:39:24Z","updated_at":"2015-09-11T09:39:24Z","html_url":"https://github.com/t584/myflix/pull/15#discussion_r39255739","pull_request_url":"https://api.github.com/repos/t584/myflix/pulls/15","_links":{"self":{"href":"https://api.github.com/repos/t584/myflix/pulls/comments/39255739"},"html":{"href":"https://github.com/t584/myflix/pull/15#discussion_r39255739"},"pull_request":{"href":"https://api.github.com/repos/t584/myflix/pulls/15"}}},"pull_request":{"url":"https://api.github.com/repos/t584/myflix/pulls/15","id":44748616,"html_url":"https://github.com/t584/myflix/pull/15","diff_url":"https://github.com/t584/myflix/pull/15.diff","patch_url":"https://github.com/t584/myflix/pull/15.patch","issue_url":"https://api.github.com/repos/t584/myflix/issues/15","number":15,"state":"open","locked":false,"title":"Wk7 PR2","user":{"login":"t584","id":7085545,"avatar_url":"https://avatars.githubusercontent.com/u/7085545?v=3","gravatar_id":"","url":"https://api.github.com/users/t584","html_url":"https://github.com/t584","followers_url":"https://api.github.com/users/t584/followers","following_url":"https://api.github.com/users/t584/following{/other_user}","gists_url":"https://api.github.com/users/t584/gists{/gist_id}","starred_url":"https://api.github.com/users/t584/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/t584/subscriptions","organizations_url":"https://api.github.com/users/t584/orgs","repos_url":"https://api.github.com/users/t584/repos","events_url":"https://api.github.com/users/t584/events{/privacy}","received_events_url":"https://api.github.com/users/t584/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-09-11T05:52:10Z","updated_at":"2015-09-11T09:39:24Z","closed_at":null,"merged_at":null,"merge_commit_sha":"0f33c08454cada52a868409639a11acedfdc194c","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/t584/myflix/pulls/15/commits","review_comments_url":"https://api.github.com/repos/t584/myflix/pulls/15/comments","review_comment_url":"https://api.github.com/repos/t584/myflix/pulls/comments{/number}","comments_url":"https://api.github.com/repos/t584/myflix/issues/15/comments","statuses_url":"https://api.github.com/repos/t584/myflix/statuses/717a3d33325ab98a85f7b52ace0eebf7c6238642","head":{"label":"t584:Wk7-2","ref":"Wk7-2","sha":"717a3d33325ab98a85f7b52ace0eebf7c6238642","user":{"login":"t584","id":7085545,"avatar_url":"https://avatars.githubusercontent.com/u/7085545?v=3","gravatar_id":"","url":"https://api.github.com/users/t584","html_url":"https://github.com/t584","followers_url":"https://api.github.com/users/t584/followers","following_url":"https://api.github.com/users/t584/following{/other_user}","gists_url":"https://api.github.com/users/t584/gists{/gist_id}","starred_url":"https://api.github.com/users/t584/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/t584/subscriptions","organizations_url":"https://api.github.com/users/t584/orgs","repos_url":"https://api.github.com/users/t584/repos","events_url":"https://api.github.com/users/t584/events{/privacy}","received_events_url":"https://api.github.com/users/t584/received_events","type":"User","site_admin":false},"repo":{"id":34650135,"name":"myflix","full_name":"t584/myflix","owner":{"login":"t584","id":7085545,"avatar_url":"https://avatars.githubusercontent.com/u/7085545?v=3","gravatar_id":"","url":"https://api.github.com/users/t584","html_url":"https://github.com/t584","followers_url":"https://api.github.com/users/t584/followers","following_url":"https://api.github.com/users/t584/following{/other_user}","gists_url":"https://api.github.com/users/t584/gists{/gist_id}","starred_url":"https://api.github.com/users/t584/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/t584/subscriptions","organizations_url":"https://api.github.com/users/t584/orgs","repos_url":"https://api.github.com/users/t584/repos","events_url":"https://api.github.com/users/t584/events{/privacy}","received_events_url":"https://api.github.com/users/t584/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/t584/myflix","description":"","fork":false,"url":"https://api.github.com/repos/t584/myflix","forks_url":"https://api.github.com/repos/t584/myflix/forks","keys_url":"https://api.github.com/repos/t584/myflix/keys{/key_id}","collaborators_url":"https://api.github.com/repos/t584/myflix/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/t584/myflix/teams","hooks_url":"https://api.github.com/repos/t584/myflix/hooks","issue_events_url":"https://api.github.com/repos/t584/myflix/issues/events{/number}","events_url":"https://api.github.com/repos/t584/myflix/events","assignees_url":"https://api.github.com/repos/t584/myflix/assignees{/user}","branches_url":"https://api.github.com/repos/t584/myflix/branches{/branch}","tags_url":"https://api.github.com/repos/t584/myflix/tags","blobs_url":"https://api.github.com/repos/t584/myflix/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/t584/myflix/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/t584/myflix/git/refs{/sha}","trees_url":"https://api.github.com/repos/t584/myflix/git/trees{/sha}","statuses_url":"https://api.github.com/repos/t584/myflix/statuses/{sha}","languages_url":"https://api.github.com/repos/t584/myflix/languages","stargazers_url":"https://api.github.com/repos/t584/myflix/stargazers","contributors_url":"https://api.github.com/repos/t584/myflix/contributors","subscribers_url":"https://api.github.com/repos/t584/myflix/subscribers","subscription_url":"https://api.github.com/repos/t584/myflix/subscription","commits_url":"https://api.github.com/repos/t584/myflix/commits{/sha}","git_commits_url":"https://api.github.com/repos/t584/myflix/git/commits{/sha}","comments_url":"https://api.github.com/repos/t584/myflix/comments{/number}","issue_comment_url":"https://api.github.com/repos/t584/myflix/issues/comments{/number}","contents_url":"https://api.github.com/repos/t584/myflix/contents/{+path}","compare_url":"https://api.github.com/repos/t584/myflix/compare/{base}...{head}","merges_url":"https://api.github.com/repos/t584/myflix/merges","archive_url":"https://api.github.com/repos/t584/myflix/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/t584/myflix/downloads","issues_url":"https://api.github.com/repos/t584/myflix/issues{/number}","pulls_url":"https://api.github.com/repos/t584/myflix/pulls{/number}","milestones_url":"https://api.github.com/repos/t584/myflix/milestones{/number}","notifications_url":"https://api.github.com/repos/t584/myflix/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/t584/myflix/labels{/name}","releases_url":"https://api.github.com/repos/t584/myflix/releases{/id}","created_at":"2015-04-27T06:39:45Z","updated_at":"2015-05-05T05:11:42Z","pushed_at":"2015-09-11T05:52:10Z","git_url":"git://github.com/t584/myflix.git","ssh_url":"git@github.com:t584/myflix.git","clone_url":"https://github.com/t584/myflix.git","svn_url":"https://github.com/t584/myflix","homepage":null,"size":2757,"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":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"Wk04-1"}},"base":{"label":"t584:staging","ref":"staging","sha":"d083d73a554759816130027feb7545f0f9ef13e2","user":{"login":"t584","id":7085545,"avatar_url":"https://avatars.githubusercontent.com/u/7085545?v=3","gravatar_id":"","url":"https://api.github.com/users/t584","html_url":"https://github.com/t584","followers_url":"https://api.github.com/users/t584/followers","following_url":"https://api.github.com/users/t584/following{/other_user}","gists_url":"https://api.github.com/users/t584/gists{/gist_id}","starred_url":"https://api.github.com/users/t584/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/t584/subscriptions","organizations_url":"https://api.github.com/users/t584/orgs","repos_url":"https://api.github.com/users/t584/repos","events_url":"https://api.github.com/users/t584/events{/privacy}","received_events_url":"https://api.github.com/users/t584/received_events","type":"User","site_admin":false},"repo":{"id":34650135,"name":"myflix","full_name":"t584/myflix","owner":{"login":"t584","id":7085545,"avatar_url":"https://avatars.githubusercontent.com/u/7085545?v=3","gravatar_id":"","url":"https://api.github.com/users/t584","html_url":"https://github.com/t584","followers_url":"https://api.github.com/users/t584/followers","following_url":"https://api.github.com/users/t584/following{/other_user}","gists_url":"https://api.github.com/users/t584/gists{/gist_id}","starred_url":"https://api.github.com/users/t584/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/t584/subscriptions","organizations_url":"https://api.github.com/users/t584/orgs","repos_url":"https://api.github.com/users/t584/repos","events_url":"https://api.github.com/users/t584/events{/privacy}","received_events_url":"https://api.github.com/users/t584/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/t584/myflix","description":"","fork":false,"url":"https://api.github.com/repos/t584/myflix","forks_url":"https://api.github.com/repos/t584/myflix/forks","keys_url":"https://api.github.com/repos/t584/myflix/keys{/key_id}","collaborators_url":"https://api.github.com/repos/t584/myflix/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/t584/myflix/teams","hooks_url":"https://api.github.com/repos/t584/myflix/hooks","issue_events_url":"https://api.github.com/repos/t584/myflix/issues/events{/number}","events_url":"https://api.github.com/repos/t584/myflix/events","assignees_url":"https://api.github.com/repos/t584/myflix/assignees{/user}","branches_url":"https://api.github.com/repos/t584/myflix/branches{/branch}","tags_url":"https://api.github.com/repos/t584/myflix/tags","blobs_url":"https://api.github.com/repos/t584/myflix/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/t584/myflix/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/t584/myflix/git/refs{/sha}","trees_url":"https://api.github.com/repos/t584/myflix/git/trees{/sha}","statuses_url":"https://api.github.com/repos/t584/myflix/statuses/{sha}","languages_url":"https://api.github.com/repos/t584/myflix/languages","stargazers_url":"https://api.github.com/repos/t584/myflix/stargazers","contributors_url":"https://api.github.com/repos/t584/myflix/contributors","subscribers_url":"https://api.github.com/repos/t584/myflix/subscribers","subscription_url":"https://api.github.com/repos/t584/myflix/subscription","commits_url":"https://api.github.com/repos/t584/myflix/commits{/sha}","git_commits_url":"https://api.github.com/repos/t584/myflix/git/commits{/sha}","comments_url":"https://api.github.com/repos/t584/myflix/comments{/number}","issue_comment_url":"https://api.github.com/repos/t584/myflix/issues/comments{/number}","contents_url":"https://api.github.com/repos/t584/myflix/contents/{+path}","compare_url":"https://api.github.com/repos/t584/myflix/compare/{base}...{head}","merges_url":"https://api.github.com/repos/t584/myflix/merges","archive_url":"https://api.github.com/repos/t584/myflix/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/t584/myflix/downloads","issues_url":"https://api.github.com/repos/t584/myflix/issues{/number}","pulls_url":"https://api.github.com/repos/t584/myflix/pulls{/number}","milestones_url":"https://api.github.com/repos/t584/myflix/milestones{/number}","notifications_url":"https://api.github.com/repos/t584/myflix/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/t584/myflix/labels{/name}","releases_url":"https://api.github.com/repos/t584/myflix/releases{/id}","created_at":"2015-04-27T06:39:45Z","updated_at":"2015-05-05T05:11:42Z","pushed_at":"2015-09-11T05:52:10Z","git_url":"git://github.com/t584/myflix.git","ssh_url":"git@github.com:t584/myflix.git","clone_url":"https://github.com/t584/myflix.git","svn_url":"https://github.com/t584/myflix","homepage":null,"size":2757,"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":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"Wk04-1"}},"_links":{"self":{"href":"https://api.github.com/repos/t584/myflix/pulls/15"},"html":{"href":"https://github.com/t584/myflix/pull/15"},"issue":{"href":"https://api.github.com/repos/t584/myflix/issues/15"},"comments":{"href":"https://api.github.com/repos/t584/myflix/issues/15/comments"},"review_comments":{"href":"https://api.github.com/repos/t584/myflix/pulls/15/comments"},"review_comment":{"href":"https://api.github.com/repos/t584/myflix/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/t584/myflix/pulls/15/commits"},"statuses":{"href":"https://api.github.com/repos/t584/myflix/statuses/717a3d33325ab98a85f7b52ace0eebf7c6238642"}}}}