{"action":"created","comment":{"url":"https://api.github.com/repos/falonofthetower/myflix/pulls/comments/31864727","id":31864727,"diff_hunk":"@@ -0,0 +1,84 @@\n+require 'spec_helper'\n+\n+describe InvitationsController do\n+  describe \"GET new\" do\n+    it \"sets the @invitation to a new invitation\" do\n+      set_current_user\n+      get :new\n+      expect(assigns(:invitation)).to be_new_record\n+      expect(assigns(:invitation)).to be_instance_of Invitation\n+    end\n+\n+    it_behaves_like \"requires sign in\" do\n+      let(:action) { get :new }\n+    end\n+  end\n+\n+  describe \"POST create\" do\n+    it_behaves_like \"requires sign in\" do\n+      let(:action) { post :create }\n+    end\n+\n+    context \"with valid input\" do\n+      it \"redirects to the invitation new page\" do\n+        set_current_user\n+        post :create, invitation: { recipient_name: \"Joe Black\", recipient_email: \"hades@hell.com\", message: \"When I introduce you, and I tell them who you are, I don't think anyone will stay for dinner.\" }\n+        expect(response).to redirect_to new_invitation_path\n+      end\n+\n+      it \"creates an invitation\" do\n+        set_current_user\n+        post :create, invitation: { recipient_name: \"Joe Black\", recipient_email: \"hades@hell.com\", message: \"When I introduce you, and I tell them who you are, I don't think anyone will stay for dinner.\" }","path":"spec/controllers/invitations_controller_spec.rb","position":31,"original_position":31,"commit_id":"8595722741d235a3cf757e40a42b48c94346daae","original_commit_id":"8595722741d235a3cf757e40a42b48c94346daae","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":"Line is too long. [206/80]","created_at":"2015-06-06T05:03:38Z","updated_at":"2015-06-06T05:03:38Z","html_url":"https://github.com/falonofthetower/myflix/pull/9#discussion_r31864727","pull_request_url":"https://api.github.com/repos/falonofthetower/myflix/pulls/9","_links":{"self":{"href":"https://api.github.com/repos/falonofthetower/myflix/pulls/comments/31864727"},"html":{"href":"https://github.com/falonofthetower/myflix/pull/9#discussion_r31864727"},"pull_request":{"href":"https://api.github.com/repos/falonofthetower/myflix/pulls/9"}}},"pull_request":{"url":"https://api.github.com/repos/falonofthetower/myflix/pulls/9","id":37084615,"html_url":"https://github.com/falonofthetower/myflix/pull/9","diff_url":"https://github.com/falonofthetower/myflix/pull/9.diff","patch_url":"https://github.com/falonofthetower/myflix/pull/9.patch","issue_url":"https://api.github.com/repos/falonofthetower/myflix/issues/9","number":9,"state":"open","locked":false,"title":"Week 5 1","user":{"login":"falonofthetower","id":6103923,"avatar_url":"https://avatars.githubusercontent.com/u/6103923?v=3","gravatar_id":"","url":"https://api.github.com/users/falonofthetower","html_url":"https://github.com/falonofthetower","followers_url":"https://api.github.com/users/falonofthetower/followers","following_url":"https://api.github.com/users/falonofthetower/following{/other_user}","gists_url":"https://api.github.com/users/falonofthetower/gists{/gist_id}","starred_url":"https://api.github.com/users/falonofthetower/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/falonofthetower/subscriptions","organizations_url":"https://api.github.com/users/falonofthetower/orgs","repos_url":"https://api.github.com/users/falonofthetower/repos","events_url":"https://api.github.com/users/falonofthetower/events{/privacy}","received_events_url":"https://api.github.com/users/falonofthetower/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-06-06T04:20:43Z","updated_at":"2015-06-06T05:03:38Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c07fb8451ea76ec891b146c69335eb8b2ec92fe1","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/falonofthetower/myflix/pulls/9/commits","review_comments_url":"https://api.github.com/repos/falonofthetower/myflix/pulls/9/comments","review_comment_url":"https://api.github.com/repos/falonofthetower/myflix/pulls/comments{/number}","comments_url":"https://api.github.com/repos/falonofthetower/myflix/issues/9/comments","statuses_url":"https://api.github.com/repos/falonofthetower/myflix/statuses/8595722741d235a3cf757e40a42b48c94346daae","head":{"label":"falonofthetower:week_5_1","ref":"week_5_1","sha":"8595722741d235a3cf757e40a42b48c94346daae","user":{"login":"falonofthetower","id":6103923,"avatar_url":"https://avatars.githubusercontent.com/u/6103923?v=3","gravatar_id":"","url":"https://api.github.com/users/falonofthetower","html_url":"https://github.com/falonofthetower","followers_url":"https://api.github.com/users/falonofthetower/followers","following_url":"https://api.github.com/users/falonofthetower/following{/other_user}","gists_url":"https://api.github.com/users/falonofthetower/gists{/gist_id}","starred_url":"https://api.github.com/users/falonofthetower/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/falonofthetower/subscriptions","organizations_url":"https://api.github.com/users/falonofthetower/orgs","repos_url":"https://api.github.com/users/falonofthetower/repos","events_url":"https://api.github.com/users/falonofthetower/events{/privacy}","received_events_url":"https://api.github.com/users/falonofthetower/received_events","type":"User","site_admin":false},"repo":{"id":28207266,"name":"myflix","full_name":"falonofthetower/myflix","owner":{"login":"falonofthetower","id":6103923,"avatar_url":"https://avatars.githubusercontent.com/u/6103923?v=3","gravatar_id":"","url":"https://api.github.com/users/falonofthetower","html_url":"https://github.com/falonofthetower","followers_url":"https://api.github.com/users/falonofthetower/followers","following_url":"https://api.github.com/users/falonofthetower/following{/other_user}","gists_url":"https://api.github.com/users/falonofthetower/gists{/gist_id}","starred_url":"https://api.github.com/users/falonofthetower/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/falonofthetower/subscriptions","organizations_url":"https://api.github.com/users/falonofthetower/orgs","repos_url":"https://api.github.com/users/falonofthetower/repos","events_url":"https://api.github.com/users/falonofthetower/events{/privacy}","received_events_url":"https://api.github.com/users/falonofthetower/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/falonofthetower/myflix","description":"","fork":false,"url":"https://api.github.com/repos/falonofthetower/myflix","forks_url":"https://api.github.com/repos/falonofthetower/myflix/forks","keys_url":"https://api.github.com/repos/falonofthetower/myflix/keys{/key_id}","collaborators_url":"https://api.github.com/repos/falonofthetower/myflix/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/falonofthetower/myflix/teams","hooks_url":"https://api.github.com/repos/falonofthetower/myflix/hooks","issue_events_url":"https://api.github.com/repos/falonofthetower/myflix/issues/events{/number}","events_url":"https://api.github.com/repos/falonofthetower/myflix/events","assignees_url":"https://api.github.com/repos/falonofthetower/myflix/assignees{/user}","branches_url":"https://api.github.com/repos/falonofthetower/myflix/branches{/branch}","tags_url":"https://api.github.com/repos/falonofthetower/myflix/tags","blobs_url":"https://api.github.com/repos/falonofthetower/myflix/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/falonofthetower/myflix/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/falonofthetower/myflix/git/refs{/sha}","trees_url":"https://api.github.com/repos/falonofthetower/myflix/git/trees{/sha}","statuses_url":"https://api.github.com/repos/falonofthetower/myflix/statuses/{sha}","languages_url":"https://api.github.com/repos/falonofthetower/myflix/languages","stargazers_url":"https://api.github.com/repos/falonofthetower/myflix/stargazers","contributors_url":"https://api.github.com/repos/falonofthetower/myflix/contributors","subscribers_url":"https://api.github.com/repos/falonofthetower/myflix/subscribers","subscription_url":"https://api.github.com/repos/falonofthetower/myflix/subscription","commits_url":"https://api.github.com/repos/falonofthetower/myflix/commits{/sha}","git_commits_url":"https://api.github.com/repos/falonofthetower/myflix/git/commits{/sha}","comments_url":"https://api.github.com/repos/falonofthetower/myflix/comments{/number}","issue_comment_url":"https://api.github.com/repos/falonofthetower/myflix/issues/comments{/number}","contents_url":"https://api.github.com/repos/falonofthetower/myflix/contents/{+path}","compare_url":"https://api.github.com/repos/falonofthetower/myflix/compare/{base}...{head}","merges_url":"https://api.github.com/repos/falonofthetower/myflix/merges","archive_url":"https://api.github.com/repos/falonofthetower/myflix/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/falonofthetower/myflix/downloads","issues_url":"https://api.github.com/repos/falonofthetower/myflix/issues{/number}","pulls_url":"https://api.github.com/repos/falonofthetower/myflix/pulls{/number}","milestones_url":"https://api.github.com/repos/falonofthetower/myflix/milestones{/number}","notifications_url":"https://api.github.com/repos/falonofthetower/myflix/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/falonofthetower/myflix/labels{/name}","releases_url":"https://api.github.com/repos/falonofthetower/myflix/releases{/id}","created_at":"2014-12-19T00:10:03Z","updated_at":"2015-05-04T19:42:54Z","pushed_at":"2015-06-06T05:00:05Z","git_url":"git://github.com/falonofthetower/myflix.git","ssh_url":"git@github.com:falonofthetower/myflix.git","clone_url":"https://github.com/falonofthetower/myflix.git","svn_url":"https://github.com/falonofthetower/myflix","homepage":null,"size":543,"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":"falonofthetower:master","ref":"master","sha":"9c6c8a56d91ef0af335cc64c3671c05d69984ae6","user":{"login":"falonofthetower","id":6103923,"avatar_url":"https://avatars.githubusercontent.com/u/6103923?v=3","gravatar_id":"","url":"https://api.github.com/users/falonofthetower","html_url":"https://github.com/falonofthetower","followers_url":"https://api.github.com/users/falonofthetower/followers","following_url":"https://api.github.com/users/falonofthetower/following{/other_user}","gists_url":"https://api.github.com/users/falonofthetower/gists{/gist_id}","starred_url":"https://api.github.com/users/falonofthetower/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/falonofthetower/subscriptions","organizations_url":"https://api.github.com/users/falonofthetower/orgs","repos_url":"https://api.github.com/users/falonofthetower/repos","events_url":"https://api.github.com/users/falonofthetower/events{/privacy}","received_events_url":"https://api.github.com/users/falonofthetower/received_events","type":"User","site_admin":false},"repo":{"id":28207266,"name":"myflix","full_name":"falonofthetower/myflix","owner":{"login":"falonofthetower","id":6103923,"avatar_url":"https://avatars.githubusercontent.com/u/6103923?v=3","gravatar_id":"","url":"https://api.github.com/users/falonofthetower","html_url":"https://github.com/falonofthetower","followers_url":"https://api.github.com/users/falonofthetower/followers","following_url":"https://api.github.com/users/falonofthetower/following{/other_user}","gists_url":"https://api.github.com/users/falonofthetower/gists{/gist_id}","starred_url":"https://api.github.com/users/falonofthetower/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/falonofthetower/subscriptions","organizations_url":"https://api.github.com/users/falonofthetower/orgs","repos_url":"https://api.github.com/users/falonofthetower/repos","events_url":"https://api.github.com/users/falonofthetower/events{/privacy}","received_events_url":"https://api.github.com/users/falonofthetower/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/falonofthetower/myflix","description":"","fork":false,"url":"https://api.github.com/repos/falonofthetower/myflix","forks_url":"https://api.github.com/repos/falonofthetower/myflix/forks","keys_url":"https://api.github.com/repos/falonofthetower/myflix/keys{/key_id}","collaborators_url":"https://api.github.com/repos/falonofthetower/myflix/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/falonofthetower/myflix/teams","hooks_url":"https://api.github.com/repos/falonofthetower/myflix/hooks","issue_events_url":"https://api.github.com/repos/falonofthetower/myflix/issues/events{/number}","events_url":"https://api.github.com/repos/falonofthetower/myflix/events","assignees_url":"https://api.github.com/repos/falonofthetower/myflix/assignees{/user}","branches_url":"https://api.github.com/repos/falonofthetower/myflix/branches{/branch}","tags_url":"https://api.github.com/repos/falonofthetower/myflix/tags","blobs_url":"https://api.github.com/repos/falonofthetower/myflix/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/falonofthetower/myflix/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/falonofthetower/myflix/git/refs{/sha}","trees_url":"https://api.github.com/repos/falonofthetower/myflix/git/trees{/sha}","statuses_url":"https://api.github.com/repos/falonofthetower/myflix/statuses/{sha}","languages_url":"https://api.github.com/repos/falonofthetower/myflix/languages","stargazers_url":"https://api.github.com/repos/falonofthetower/myflix/stargazers","contributors_url":"https://api.github.com/repos/falonofthetower/myflix/contributors","subscribers_url":"https://api.github.com/repos/falonofthetower/myflix/subscribers","subscription_url":"https://api.github.com/repos/falonofthetower/myflix/subscription","commits_url":"https://api.github.com/repos/falonofthetower/myflix/commits{/sha}","git_commits_url":"https://api.github.com/repos/falonofthetower/myflix/git/commits{/sha}","comments_url":"https://api.github.com/repos/falonofthetower/myflix/comments{/number}","issue_comment_url":"https://api.github.com/repos/falonofthetower/myflix/issues/comments{/number}","contents_url":"https://api.github.com/repos/falonofthetower/myflix/contents/{+path}","compare_url":"https://api.github.com/repos/falonofthetower/myflix/compare/{base}...{head}","merges_url":"https://api.github.com/repos/falonofthetower/myflix/merges","archive_url":"https://api.github.com/repos/falonofthetower/myflix/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/falonofthetower/myflix/downloads","issues_url":"https://api.github.com/repos/falonofthetower/myflix/issues{/number}","pulls_url":"https://api.github.com/repos/falonofthetower/myflix/pulls{/number}","milestones_url":"https://api.github.com/repos/falonofthetower/myflix/milestones{/number}","notifications_url":"https://api.github.com/repos/falonofthetower/myflix/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/falonofthetower/myflix/labels{/name}","releases_url":"https://api.github.com/repos/falonofthetower/myflix/releases{/id}","created_at":"2014-12-19T00:10:03Z","updated_at":"2015-05-04T19:42:54Z","pushed_at":"2015-06-06T05:00:05Z","git_url":"git://github.com/falonofthetower/myflix.git","ssh_url":"git@github.com:falonofthetower/myflix.git","clone_url":"https://github.com/falonofthetower/myflix.git","svn_url":"https://github.com/falonofthetower/myflix","homepage":null,"size":543,"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/falonofthetower/myflix/pulls/9"},"html":{"href":"https://github.com/falonofthetower/myflix/pull/9"},"issue":{"href":"https://api.github.com/repos/falonofthetower/myflix/issues/9"},"comments":{"href":"https://api.github.com/repos/falonofthetower/myflix/issues/9/comments"},"review_comments":{"href":"https://api.github.com/repos/falonofthetower/myflix/pulls/9/comments"},"review_comment":{"href":"https://api.github.com/repos/falonofthetower/myflix/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/falonofthetower/myflix/pulls/9/commits"},"statuses":{"href":"https://api.github.com/repos/falonofthetower/myflix/statuses/8595722741d235a3cf757e40a42b48c94346daae"}}}}