{"action":"created","comment":{"url":"https://api.github.com/repos/makersacademy/instagram-challenge/pulls/comments/35514575","id":35514575,"diff_hunk":"@@ -0,0 +1,89 @@\n+require 'rails_helper'\n+\n+feature \"User can sign in and out\" do\n+  context \"user not signed in and on the homepage\" do\n+    it \"should see a 'log in' link and a 'sign up' link\" do\n+      visit '/'\n+      expect(page).to have_link('Log in')\n+      expect(page).to have_link('Sign Up')\n+    end\n+\n+    it \"should not see 'log out' link\" do\n+      visit '/'\n+      expect(page).not_to have_link('Log out')\n+    end\n+  end\n+\n+  context \"user logged in on the homepage\" do\n+    before do\n+      visit '/'\n+      click_link('Sign Up')\n+      fill_in('Email', with: 'lucy@mail.com')\n+      fill_in('Password', with: 'starwars')\n+      fill_in('Password confirmation', with: 'starwars')\n+      click_button('Sign up')\n+    end\n+\n+    it \"should see 'log out' link\" do\n+      visit '/'\n+      expect(page).to have_link('Log out')\n+    end\n+\n+    it \"should not see a 'log in' link and a 'sign up' link\" do\n+      visit '/'\n+      expect(page).not_to have_link('Log in')\n+      expect(page).not_to have_link('Sign Up')\n+    end\n+  end\n+end\n+\n+feature \"When users are logged in\" do\n+\n+  it \"they can only edit their own pictures\" do\n+    sign_up\n+    click_link 'Upload a picture'\n+    attach_file 'Image', 'spec/features/McAvoy.jpg'\n+    fill_in 'Description', with: 'Bae'\n+    click_button 'Upload your picture'\n+    expect(current_path).to eq '/pictures'\n+    click_link 'Log out'\n+    sign_up_2\n+    expect(current_path).to eq '/'\n+    click_link 'Edit Bae'\n+    expect(current_path).to eq '/pictures'\n+    expect(page).to have_content 'You do not have permission to edit this picture'","path":"instagram_clone/spec/features/users_feature_spec.rb","position":54,"original_position":54,"commit_id":"5ff47ff8734846342428b30068a0ee91dd08d1be","original_commit_id":"5ff47ff8734846342428b30068a0ee91dd08d1be","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. [82/80]","created_at":"2015-07-27T08:31:31Z","updated_at":"2015-07-27T08:31:31Z","html_url":"https://github.com/makersacademy/instagram-challenge/pull/65#discussion_r35514575","pull_request_url":"https://api.github.com/repos/makersacademy/instagram-challenge/pulls/65","_links":{"self":{"href":"https://api.github.com/repos/makersacademy/instagram-challenge/pulls/comments/35514575"},"html":{"href":"https://github.com/makersacademy/instagram-challenge/pull/65#discussion_r35514575"},"pull_request":{"href":"https://api.github.com/repos/makersacademy/instagram-challenge/pulls/65"}}},"pull_request":{"url":"https://api.github.com/repos/makersacademy/instagram-challenge/pulls/65","id":40880384,"html_url":"https://github.com/makersacademy/instagram-challenge/pull/65","diff_url":"https://github.com/makersacademy/instagram-challenge/pull/65.diff","patch_url":"https://github.com/makersacademy/instagram-challenge/pull/65.patch","issue_url":"https://api.github.com/repos/makersacademy/instagram-challenge/issues/65","number":65,"state":"open","locked":false,"title":"Instagram Challenge","user":{"login":"Triffanys101","id":12293015,"avatar_url":"https://avatars.githubusercontent.com/u/12293015?v=3","gravatar_id":"","url":"https://api.github.com/users/Triffanys101","html_url":"https://github.com/Triffanys101","followers_url":"https://api.github.com/users/Triffanys101/followers","following_url":"https://api.github.com/users/Triffanys101/following{/other_user}","gists_url":"https://api.github.com/users/Triffanys101/gists{/gist_id}","starred_url":"https://api.github.com/users/Triffanys101/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Triffanys101/subscriptions","organizations_url":"https://api.github.com/users/Triffanys101/orgs","repos_url":"https://api.github.com/users/Triffanys101/repos","events_url":"https://api.github.com/users/Triffanys101/events{/privacy}","received_events_url":"https://api.github.com/users/Triffanys101/received_events","type":"User","site_admin":false},"body":"1. How do you move something out its sub-directory without losing the hidden files etc?\r\n2. I have back-end and front-end logic for my likes but something must be wrong as the like count doesn't increase.\r\n","created_at":"2015-07-27T08:31:10Z","updated_at":"2015-07-27T08:31:32Z","closed_at":null,"merged_at":null,"merge_commit_sha":"5e8776b5750a0646c2bc661ddc193e21dc688749","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/makersacademy/instagram-challenge/pulls/65/commits","review_comments_url":"https://api.github.com/repos/makersacademy/instagram-challenge/pulls/65/comments","review_comment_url":"https://api.github.com/repos/makersacademy/instagram-challenge/pulls/comments{/number}","comments_url":"https://api.github.com/repos/makersacademy/instagram-challenge/issues/65/comments","statuses_url":"https://api.github.com/repos/makersacademy/instagram-challenge/statuses/5ff47ff8734846342428b30068a0ee91dd08d1be","head":{"label":"Triffanys101:master","ref":"master","sha":"5ff47ff8734846342428b30068a0ee91dd08d1be","user":{"login":"Triffanys101","id":12293015,"avatar_url":"https://avatars.githubusercontent.com/u/12293015?v=3","gravatar_id":"","url":"https://api.github.com/users/Triffanys101","html_url":"https://github.com/Triffanys101","followers_url":"https://api.github.com/users/Triffanys101/followers","following_url":"https://api.github.com/users/Triffanys101/following{/other_user}","gists_url":"https://api.github.com/users/Triffanys101/gists{/gist_id}","starred_url":"https://api.github.com/users/Triffanys101/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Triffanys101/subscriptions","organizations_url":"https://api.github.com/users/Triffanys101/orgs","repos_url":"https://api.github.com/users/Triffanys101/repos","events_url":"https://api.github.com/users/Triffanys101/events{/privacy}","received_events_url":"https://api.github.com/users/Triffanys101/received_events","type":"User","site_admin":false},"repo":{"id":39622883,"name":"instagram-challenge","full_name":"Triffanys101/instagram-challenge","owner":{"login":"Triffanys101","id":12293015,"avatar_url":"https://avatars.githubusercontent.com/u/12293015?v=3","gravatar_id":"","url":"https://api.github.com/users/Triffanys101","html_url":"https://github.com/Triffanys101","followers_url":"https://api.github.com/users/Triffanys101/followers","following_url":"https://api.github.com/users/Triffanys101/following{/other_user}","gists_url":"https://api.github.com/users/Triffanys101/gists{/gist_id}","starred_url":"https://api.github.com/users/Triffanys101/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Triffanys101/subscriptions","organizations_url":"https://api.github.com/users/Triffanys101/orgs","repos_url":"https://api.github.com/users/Triffanys101/repos","events_url":"https://api.github.com/users/Triffanys101/events{/privacy}","received_events_url":"https://api.github.com/users/Triffanys101/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Triffanys101/instagram-challenge","description":"Rebuild Instagram","fork":true,"url":"https://api.github.com/repos/Triffanys101/instagram-challenge","forks_url":"https://api.github.com/repos/Triffanys101/instagram-challenge/forks","keys_url":"https://api.github.com/repos/Triffanys101/instagram-challenge/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Triffanys101/instagram-challenge/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Triffanys101/instagram-challenge/teams","hooks_url":"https://api.github.com/repos/Triffanys101/instagram-challenge/hooks","issue_events_url":"https://api.github.com/repos/Triffanys101/instagram-challenge/issues/events{/number}","events_url":"https://api.github.com/repos/Triffanys101/instagram-challenge/events","assignees_url":"https://api.github.com/repos/Triffanys101/instagram-challenge/assignees{/user}","branches_url":"https://api.github.com/repos/Triffanys101/instagram-challenge/branches{/branch}","tags_url":"https://api.github.com/repos/Triffanys101/instagram-challenge/tags","blobs_url":"https://api.github.com/repos/Triffanys101/instagram-challenge/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Triffanys101/instagram-challenge/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Triffanys101/instagram-challenge/git/refs{/sha}","trees_url":"https://api.github.com/repos/Triffanys101/instagram-challenge/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Triffanys101/instagram-challenge/statuses/{sha}","languages_url":"https://api.github.com/repos/Triffanys101/instagram-challenge/languages","stargazers_url":"https://api.github.com/repos/Triffanys101/instagram-challenge/stargazers","contributors_url":"https://api.github.com/repos/Triffanys101/instagram-challenge/contributors","subscribers_url":"https://api.github.com/repos/Triffanys101/instagram-challenge/subscribers","subscription_url":"https://api.github.com/repos/Triffanys101/instagram-challenge/subscription","commits_url":"https://api.github.com/repos/Triffanys101/instagram-challenge/commits{/sha}","git_commits_url":"https://api.github.com/repos/Triffanys101/instagram-challenge/git/commits{/sha}","comments_url":"https://api.github.com/repos/Triffanys101/instagram-challenge/comments{/number}","issue_comment_url":"https://api.github.com/repos/Triffanys101/instagram-challenge/issues/comments{/number}","contents_url":"https://api.github.com/repos/Triffanys101/instagram-challenge/contents/{+path}","compare_url":"https://api.github.com/repos/Triffanys101/instagram-challenge/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Triffanys101/instagram-challenge/merges","archive_url":"https://api.github.com/repos/Triffanys101/instagram-challenge/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Triffanys101/instagram-challenge/downloads","issues_url":"https://api.github.com/repos/Triffanys101/instagram-challenge/issues{/number}","pulls_url":"https://api.github.com/repos/Triffanys101/instagram-challenge/pulls{/number}","milestones_url":"https://api.github.com/repos/Triffanys101/instagram-challenge/milestones{/number}","notifications_url":"https://api.github.com/repos/Triffanys101/instagram-challenge/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Triffanys101/instagram-challenge/labels{/name}","releases_url":"https://api.github.com/repos/Triffanys101/instagram-challenge/releases{/id}","created_at":"2015-07-24T09:16:08Z","updated_at":"2015-07-24T10:11:36Z","pushed_at":"2015-07-26T20:16:04Z","git_url":"git://github.com/Triffanys101/instagram-challenge.git","ssh_url":"git@github.com:Triffanys101/instagram-challenge.git","clone_url":"https://github.com/Triffanys101/instagram-challenge.git","svn_url":"https://github.com/Triffanys101/instagram-challenge","homepage":null,"size":1996,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"makersacademy:master","ref":"master","sha":"eaa3ee818a47b43e7d56fc750dd8e672997d3636","user":{"login":"makersacademy","id":3636186,"avatar_url":"https://avatars.githubusercontent.com/u/3636186?v=3","gravatar_id":"","url":"https://api.github.com/users/makersacademy","html_url":"https://github.com/makersacademy","followers_url":"https://api.github.com/users/makersacademy/followers","following_url":"https://api.github.com/users/makersacademy/following{/other_user}","gists_url":"https://api.github.com/users/makersacademy/gists{/gist_id}","starred_url":"https://api.github.com/users/makersacademy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/makersacademy/subscriptions","organizations_url":"https://api.github.com/users/makersacademy/orgs","repos_url":"https://api.github.com/users/makersacademy/repos","events_url":"https://api.github.com/users/makersacademy/events{/privacy}","received_events_url":"https://api.github.com/users/makersacademy/received_events","type":"Organization","site_admin":false},"repo":{"id":27006364,"name":"instagram-challenge","full_name":"makersacademy/instagram-challenge","owner":{"login":"makersacademy","id":3636186,"avatar_url":"https://avatars.githubusercontent.com/u/3636186?v=3","gravatar_id":"","url":"https://api.github.com/users/makersacademy","html_url":"https://github.com/makersacademy","followers_url":"https://api.github.com/users/makersacademy/followers","following_url":"https://api.github.com/users/makersacademy/following{/other_user}","gists_url":"https://api.github.com/users/makersacademy/gists{/gist_id}","starred_url":"https://api.github.com/users/makersacademy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/makersacademy/subscriptions","organizations_url":"https://api.github.com/users/makersacademy/orgs","repos_url":"https://api.github.com/users/makersacademy/repos","events_url":"https://api.github.com/users/makersacademy/events{/privacy}","received_events_url":"https://api.github.com/users/makersacademy/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/makersacademy/instagram-challenge","description":"Rebuild Instagram","fork":false,"url":"https://api.github.com/repos/makersacademy/instagram-challenge","forks_url":"https://api.github.com/repos/makersacademy/instagram-challenge/forks","keys_url":"https://api.github.com/repos/makersacademy/instagram-challenge/keys{/key_id}","collaborators_url":"https://api.github.com/repos/makersacademy/instagram-challenge/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/makersacademy/instagram-challenge/teams","hooks_url":"https://api.github.com/repos/makersacademy/instagram-challenge/hooks","issue_events_url":"https://api.github.com/repos/makersacademy/instagram-challenge/issues/events{/number}","events_url":"https://api.github.com/repos/makersacademy/instagram-challenge/events","assignees_url":"https://api.github.com/repos/makersacademy/instagram-challenge/assignees{/user}","branches_url":"https://api.github.com/repos/makersacademy/instagram-challenge/branches{/branch}","tags_url":"https://api.github.com/repos/makersacademy/instagram-challenge/tags","blobs_url":"https://api.github.com/repos/makersacademy/instagram-challenge/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/makersacademy/instagram-challenge/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/makersacademy/instagram-challenge/git/refs{/sha}","trees_url":"https://api.github.com/repos/makersacademy/instagram-challenge/git/trees{/sha}","statuses_url":"https://api.github.com/repos/makersacademy/instagram-challenge/statuses/{sha}","languages_url":"https://api.github.com/repos/makersacademy/instagram-challenge/languages","stargazers_url":"https://api.github.com/repos/makersacademy/instagram-challenge/stargazers","contributors_url":"https://api.github.com/repos/makersacademy/instagram-challenge/contributors","subscribers_url":"https://api.github.com/repos/makersacademy/instagram-challenge/subscribers","subscription_url":"https://api.github.com/repos/makersacademy/instagram-challenge/subscription","commits_url":"https://api.github.com/repos/makersacademy/instagram-challenge/commits{/sha}","git_commits_url":"https://api.github.com/repos/makersacademy/instagram-challenge/git/commits{/sha}","comments_url":"https://api.github.com/repos/makersacademy/instagram-challenge/comments{/number}","issue_comment_url":"https://api.github.com/repos/makersacademy/instagram-challenge/issues/comments{/number}","contents_url":"https://api.github.com/repos/makersacademy/instagram-challenge/contents/{+path}","compare_url":"https://api.github.com/repos/makersacademy/instagram-challenge/compare/{base}...{head}","merges_url":"https://api.github.com/repos/makersacademy/instagram-challenge/merges","archive_url":"https://api.github.com/repos/makersacademy/instagram-challenge/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/makersacademy/instagram-challenge/downloads","issues_url":"https://api.github.com/repos/makersacademy/instagram-challenge/issues{/number}","pulls_url":"https://api.github.com/repos/makersacademy/instagram-challenge/pulls{/number}","milestones_url":"https://api.github.com/repos/makersacademy/instagram-challenge/milestones{/number}","notifications_url":"https://api.github.com/repos/makersacademy/instagram-challenge/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/makersacademy/instagram-challenge/labels{/name}","releases_url":"https://api.github.com/repos/makersacademy/instagram-challenge/releases{/id}","created_at":"2014-11-22T17:26:37Z","updated_at":"2015-04-02T15:05:17Z","pushed_at":"2015-07-27T08:31:10Z","git_url":"git://github.com/makersacademy/instagram-challenge.git","ssh_url":"git@github.com:makersacademy/instagram-challenge.git","clone_url":"https://github.com/makersacademy/instagram-challenge.git","svn_url":"https://github.com/makersacademy/instagram-challenge","homepage":null,"size":60971,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":87,"mirror_url":null,"open_issues_count":18,"forks":87,"open_issues":18,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/makersacademy/instagram-challenge/pulls/65"},"html":{"href":"https://github.com/makersacademy/instagram-challenge/pull/65"},"issue":{"href":"https://api.github.com/repos/makersacademy/instagram-challenge/issues/65"},"comments":{"href":"https://api.github.com/repos/makersacademy/instagram-challenge/issues/65/comments"},"review_comments":{"href":"https://api.github.com/repos/makersacademy/instagram-challenge/pulls/65/comments"},"review_comment":{"href":"https://api.github.com/repos/makersacademy/instagram-challenge/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/makersacademy/instagram-challenge/pulls/65/commits"},"statuses":{"href":"https://api.github.com/repos/makersacademy/instagram-challenge/statuses/5ff47ff8734846342428b30068a0ee91dd08d1be"}}}}