{"action":"created","comment":{"url":"https://api.github.com/repos/tomtl/myflix/pulls/comments/33613588","id":33613588,"diff_hunk":"@@ -36,31 +42,72 @@\n \n       it \"makes the inviter follow the user\" do\n         inviter = Fabricate(:user)\n-        invitation = Fabricate(:invitation, inviter: inviter,\n-                                            recipient_email: \"joe@example.com\")\n-        post :create, user: { email: \"joe@example.com\",\n-                              password: \"password\",\n-                              full_name: \"Joe Johnson\" },\n-                      invitation_token: invitation.token\n+        invitation = Fabricate(\n+          :invitation, inviter: inviter,\n+          recipient_email: \"joe@example.com\"\n+        )\n+        post :create,\n+             user: {\n+               email: \"joe@example.com\",\n+               password: \"password\",\n+               full_name: \"Joe Johnson\"\n+             },\n+             invitation_token: invitation.token\n         recipient = User.find_by(email: \"joe@example.com\")\n         expect(inviter.follows?(recipient)).to be_truthy\n       end\n \n       it \"expires the invitation upon acceptance\" do\n         inviter = Fabricate(:user)\n-        invitation = Fabricate(:invitation, inviter: inviter,\n-                                            recipient_email: \"joe@example.com\")\n-        post :create, user: { email: \"joe@example.com\",\n-                              password: \"password\",\n-                              full_name: \"Joe Johnson\" },\n-                      invitation_token: invitation.token\n+        invitation = Fabricate(\n+          :invitation, inviter: inviter,\n+          recipient_email: \"joe@example.com\"\n+        )\n+        post :create,\n+             user: {\n+               email: \"joe@example.com\",\n+               password: \"password\",\n+               full_name: \"Joe Johnson\"\n+             },\n+             invitation_token: invitation.token\n         expect(Invitation.first.token).to be_nil\n       end\n     end\n \n-    context \"with invalid input\" do\n+    context \"with valid personal info and declined credit card\"   do","path":"spec/controllers/users_controller_spec.rb","position":64,"original_position":64,"commit_id":"d1b2f50a009ddb0c9a9cbbc5999b6c89749a735e","original_commit_id":"d1b2f50a009ddb0c9a9cbbc5999b6c89749a735e","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":"Unnecessary spacing detected.","created_at":"2015-06-30T19:29:32Z","updated_at":"2015-06-30T19:29:32Z","html_url":"https://github.com/tomtl/myflix/pull/10#discussion_r33613588","pull_request_url":"https://api.github.com/repos/tomtl/myflix/pulls/10","_links":{"self":{"href":"https://api.github.com/repos/tomtl/myflix/pulls/comments/33613588"},"html":{"href":"https://github.com/tomtl/myflix/pull/10#discussion_r33613588"},"pull_request":{"href":"https://api.github.com/repos/tomtl/myflix/pulls/10"}}},"pull_request":{"url":"https://api.github.com/repos/tomtl/myflix/pulls/10","id":38915109,"html_url":"https://github.com/tomtl/myflix/pull/10","diff_url":"https://github.com/tomtl/myflix/pull/10.diff","patch_url":"https://github.com/tomtl/myflix/pull/10.patch","issue_url":"https://api.github.com/repos/tomtl/myflix/issues/10","number":10,"state":"open","locked":false,"title":"Mod7","user":{"login":"tomtl","id":10532231,"avatar_url":"https://avatars.githubusercontent.com/u/10532231?v=3","gravatar_id":"","url":"https://api.github.com/users/tomtl","html_url":"https://github.com/tomtl","followers_url":"https://api.github.com/users/tomtl/followers","following_url":"https://api.github.com/users/tomtl/following{/other_user}","gists_url":"https://api.github.com/users/tomtl/gists{/gist_id}","starred_url":"https://api.github.com/users/tomtl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tomtl/subscriptions","organizations_url":"https://api.github.com/users/tomtl/orgs","repos_url":"https://api.github.com/users/tomtl/repos","events_url":"https://api.github.com/users/tomtl/events{/privacy}","received_events_url":"https://api.github.com/users/tomtl/received_events","type":"User","site_admin":false},"body":"Add registration payments with Stripe API and update specs to allow js.","created_at":"2015-06-30T19:29:24Z","updated_at":"2015-06-30T19:29:32Z","closed_at":null,"merged_at":null,"merge_commit_sha":"4575476a527426853ac571bc44a1707eff9c5047","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/tomtl/myflix/pulls/10/commits","review_comments_url":"https://api.github.com/repos/tomtl/myflix/pulls/10/comments","review_comment_url":"https://api.github.com/repos/tomtl/myflix/pulls/comments{/number}","comments_url":"https://api.github.com/repos/tomtl/myflix/issues/10/comments","statuses_url":"https://api.github.com/repos/tomtl/myflix/statuses/d1b2f50a009ddb0c9a9cbbc5999b6c89749a735e","head":{"label":"tomtl:mod7","ref":"mod7","sha":"d1b2f50a009ddb0c9a9cbbc5999b6c89749a735e","user":{"login":"tomtl","id":10532231,"avatar_url":"https://avatars.githubusercontent.com/u/10532231?v=3","gravatar_id":"","url":"https://api.github.com/users/tomtl","html_url":"https://github.com/tomtl","followers_url":"https://api.github.com/users/tomtl/followers","following_url":"https://api.github.com/users/tomtl/following{/other_user}","gists_url":"https://api.github.com/users/tomtl/gists{/gist_id}","starred_url":"https://api.github.com/users/tomtl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tomtl/subscriptions","organizations_url":"https://api.github.com/users/tomtl/orgs","repos_url":"https://api.github.com/users/tomtl/repos","events_url":"https://api.github.com/users/tomtl/events{/privacy}","received_events_url":"https://api.github.com/users/tomtl/received_events","type":"User","site_admin":false},"repo":{"id":34055457,"name":"myflix","full_name":"tomtl/myflix","owner":{"login":"tomtl","id":10532231,"avatar_url":"https://avatars.githubusercontent.com/u/10532231?v=3","gravatar_id":"","url":"https://api.github.com/users/tomtl","html_url":"https://github.com/tomtl","followers_url":"https://api.github.com/users/tomtl/followers","following_url":"https://api.github.com/users/tomtl/following{/other_user}","gists_url":"https://api.github.com/users/tomtl/gists{/gist_id}","starred_url":"https://api.github.com/users/tomtl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tomtl/subscriptions","organizations_url":"https://api.github.com/users/tomtl/orgs","repos_url":"https://api.github.com/users/tomtl/repos","events_url":"https://api.github.com/users/tomtl/events{/privacy}","received_events_url":"https://api.github.com/users/tomtl/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/tomtl/myflix","description":"Tealeaf course 3 pre-course app.","fork":false,"url":"https://api.github.com/repos/tomtl/myflix","forks_url":"https://api.github.com/repos/tomtl/myflix/forks","keys_url":"https://api.github.com/repos/tomtl/myflix/keys{/key_id}","collaborators_url":"https://api.github.com/repos/tomtl/myflix/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/tomtl/myflix/teams","hooks_url":"https://api.github.com/repos/tomtl/myflix/hooks","issue_events_url":"https://api.github.com/repos/tomtl/myflix/issues/events{/number}","events_url":"https://api.github.com/repos/tomtl/myflix/events","assignees_url":"https://api.github.com/repos/tomtl/myflix/assignees{/user}","branches_url":"https://api.github.com/repos/tomtl/myflix/branches{/branch}","tags_url":"https://api.github.com/repos/tomtl/myflix/tags","blobs_url":"https://api.github.com/repos/tomtl/myflix/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/tomtl/myflix/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/tomtl/myflix/git/refs{/sha}","trees_url":"https://api.github.com/repos/tomtl/myflix/git/trees{/sha}","statuses_url":"https://api.github.com/repos/tomtl/myflix/statuses/{sha}","languages_url":"https://api.github.com/repos/tomtl/myflix/languages","stargazers_url":"https://api.github.com/repos/tomtl/myflix/stargazers","contributors_url":"https://api.github.com/repos/tomtl/myflix/contributors","subscribers_url":"https://api.github.com/repos/tomtl/myflix/subscribers","subscription_url":"https://api.github.com/repos/tomtl/myflix/subscription","commits_url":"https://api.github.com/repos/tomtl/myflix/commits{/sha}","git_commits_url":"https://api.github.com/repos/tomtl/myflix/git/commits{/sha}","comments_url":"https://api.github.com/repos/tomtl/myflix/comments{/number}","issue_comment_url":"https://api.github.com/repos/tomtl/myflix/issues/comments{/number}","contents_url":"https://api.github.com/repos/tomtl/myflix/contents/{+path}","compare_url":"https://api.github.com/repos/tomtl/myflix/compare/{base}...{head}","merges_url":"https://api.github.com/repos/tomtl/myflix/merges","archive_url":"https://api.github.com/repos/tomtl/myflix/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/tomtl/myflix/downloads","issues_url":"https://api.github.com/repos/tomtl/myflix/issues{/number}","pulls_url":"https://api.github.com/repos/tomtl/myflix/pulls{/number}","milestones_url":"https://api.github.com/repos/tomtl/myflix/milestones{/number}","notifications_url":"https://api.github.com/repos/tomtl/myflix/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/tomtl/myflix/labels{/name}","releases_url":"https://api.github.com/repos/tomtl/myflix/releases{/id}","created_at":"2015-04-16T12:50:04Z","updated_at":"2015-04-30T16:25:28Z","pushed_at":"2015-06-30T19:29:24Z","git_url":"git://github.com/tomtl/myflix.git","ssh_url":"git@github.com:tomtl/myflix.git","clone_url":"https://github.com/tomtl/myflix.git","svn_url":"https://github.com/tomtl/myflix","homepage":"","size":844,"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":"master"}},"base":{"label":"tomtl:master","ref":"master","sha":"004ece43dbc24b9af7643f68721c4fa768441286","user":{"login":"tomtl","id":10532231,"avatar_url":"https://avatars.githubusercontent.com/u/10532231?v=3","gravatar_id":"","url":"https://api.github.com/users/tomtl","html_url":"https://github.com/tomtl","followers_url":"https://api.github.com/users/tomtl/followers","following_url":"https://api.github.com/users/tomtl/following{/other_user}","gists_url":"https://api.github.com/users/tomtl/gists{/gist_id}","starred_url":"https://api.github.com/users/tomtl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tomtl/subscriptions","organizations_url":"https://api.github.com/users/tomtl/orgs","repos_url":"https://api.github.com/users/tomtl/repos","events_url":"https://api.github.com/users/tomtl/events{/privacy}","received_events_url":"https://api.github.com/users/tomtl/received_events","type":"User","site_admin":false},"repo":{"id":34055457,"name":"myflix","full_name":"tomtl/myflix","owner":{"login":"tomtl","id":10532231,"avatar_url":"https://avatars.githubusercontent.com/u/10532231?v=3","gravatar_id":"","url":"https://api.github.com/users/tomtl","html_url":"https://github.com/tomtl","followers_url":"https://api.github.com/users/tomtl/followers","following_url":"https://api.github.com/users/tomtl/following{/other_user}","gists_url":"https://api.github.com/users/tomtl/gists{/gist_id}","starred_url":"https://api.github.com/users/tomtl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tomtl/subscriptions","organizations_url":"https://api.github.com/users/tomtl/orgs","repos_url":"https://api.github.com/users/tomtl/repos","events_url":"https://api.github.com/users/tomtl/events{/privacy}","received_events_url":"https://api.github.com/users/tomtl/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/tomtl/myflix","description":"Tealeaf course 3 pre-course app.","fork":false,"url":"https://api.github.com/repos/tomtl/myflix","forks_url":"https://api.github.com/repos/tomtl/myflix/forks","keys_url":"https://api.github.com/repos/tomtl/myflix/keys{/key_id}","collaborators_url":"https://api.github.com/repos/tomtl/myflix/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/tomtl/myflix/teams","hooks_url":"https://api.github.com/repos/tomtl/myflix/hooks","issue_events_url":"https://api.github.com/repos/tomtl/myflix/issues/events{/number}","events_url":"https://api.github.com/repos/tomtl/myflix/events","assignees_url":"https://api.github.com/repos/tomtl/myflix/assignees{/user}","branches_url":"https://api.github.com/repos/tomtl/myflix/branches{/branch}","tags_url":"https://api.github.com/repos/tomtl/myflix/tags","blobs_url":"https://api.github.com/repos/tomtl/myflix/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/tomtl/myflix/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/tomtl/myflix/git/refs{/sha}","trees_url":"https://api.github.com/repos/tomtl/myflix/git/trees{/sha}","statuses_url":"https://api.github.com/repos/tomtl/myflix/statuses/{sha}","languages_url":"https://api.github.com/repos/tomtl/myflix/languages","stargazers_url":"https://api.github.com/repos/tomtl/myflix/stargazers","contributors_url":"https://api.github.com/repos/tomtl/myflix/contributors","subscribers_url":"https://api.github.com/repos/tomtl/myflix/subscribers","subscription_url":"https://api.github.com/repos/tomtl/myflix/subscription","commits_url":"https://api.github.com/repos/tomtl/myflix/commits{/sha}","git_commits_url":"https://api.github.com/repos/tomtl/myflix/git/commits{/sha}","comments_url":"https://api.github.com/repos/tomtl/myflix/comments{/number}","issue_comment_url":"https://api.github.com/repos/tomtl/myflix/issues/comments{/number}","contents_url":"https://api.github.com/repos/tomtl/myflix/contents/{+path}","compare_url":"https://api.github.com/repos/tomtl/myflix/compare/{base}...{head}","merges_url":"https://api.github.com/repos/tomtl/myflix/merges","archive_url":"https://api.github.com/repos/tomtl/myflix/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/tomtl/myflix/downloads","issues_url":"https://api.github.com/repos/tomtl/myflix/issues{/number}","pulls_url":"https://api.github.com/repos/tomtl/myflix/pulls{/number}","milestones_url":"https://api.github.com/repos/tomtl/myflix/milestones{/number}","notifications_url":"https://api.github.com/repos/tomtl/myflix/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/tomtl/myflix/labels{/name}","releases_url":"https://api.github.com/repos/tomtl/myflix/releases{/id}","created_at":"2015-04-16T12:50:04Z","updated_at":"2015-04-30T16:25:28Z","pushed_at":"2015-06-30T19:29:24Z","git_url":"git://github.com/tomtl/myflix.git","ssh_url":"git@github.com:tomtl/myflix.git","clone_url":"https://github.com/tomtl/myflix.git","svn_url":"https://github.com/tomtl/myflix","homepage":"","size":844,"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":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/tomtl/myflix/pulls/10"},"html":{"href":"https://github.com/tomtl/myflix/pull/10"},"issue":{"href":"https://api.github.com/repos/tomtl/myflix/issues/10"},"comments":{"href":"https://api.github.com/repos/tomtl/myflix/issues/10/comments"},"review_comments":{"href":"https://api.github.com/repos/tomtl/myflix/pulls/10/comments"},"review_comment":{"href":"https://api.github.com/repos/tomtl/myflix/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/tomtl/myflix/pulls/10/commits"},"statuses":{"href":"https://api.github.com/repos/tomtl/myflix/statuses/d1b2f50a009ddb0c9a9cbbc5999b6c89749a735e"}}}}