{"action":"created","comment":{"url":"https://api.github.com/repos/makersacademy/instagram-challenge/pulls/comments/35572432","id":35572432,"diff_hunk":"@@ -0,0 +1,122 @@\n+require 'rails_helper'\n+\n+feature 'photos' do\n+  context 'no photos have been uploaded' do\n+    scenario 'displays a link to add photos' do\n+      visit '/'\n+      expect(page).to have_content 'No photos have been uploaded!'\n+      expect(page).to have_link 'Upload Photo'\n+    end\n+\n+\n+    # context 'uploading images' do\n+    #   scenario 'uploading an image' do\n+    #     visit '/'\n+    #     click_link 'Upload Photo'\n+    #     attach_file 'Image', 'spec/features/Ice.jpg'\n+    #     fill_in 'Caption', with: 'awesome'\n+    #     click_button 'Upload Photo'\n+    #     expect(page).to have_css(\"img[src*='Ice.jpg']\")\n+    #     expect(page).to have_content 'awesome'\n+    #     expect(current_path).to eq '/photos'\n+    #   end\n+    # end\n+\n+    context 'viewing individual pictures' do\n+      let!(:image){ Photo.create(title:'Icy', caption: 'awesome') }\n+\n+      scenario 'lets a user view a picture' do\n+        visit '/'\n+        click_link 'Icy'\n+        expect(page).to have_content 'Icy'\n+        expect(current_path).to eq \"/photos/#{image.id}\"\n+      end\n+    end\n+\n+    context 'editing photos' do\n+      before { Photo.create(title:'Icy', caption: 'awesome') }\n+\n+      # scenario 'let a user edit a photo' do\n+      #  visit '/'\n+      #  sign_up\n+      #  click_link 'Upload Photo'\n+      #  fill_in 'Title', with: 'Title'\n+      #  attach_file 'Image', 'spec/features/Ice.jpg'\n+      #  click_button 'Upload Photo'\n+      #  click_link 'Title'\n+      #  click_link 'Edit Title'\n+      #  fill_in 'Title', with: 'Iced out'\n+      #  click_button 'Update Photo'\n+      #  expect(page).to have_content 'Iced out'\n+      #  expect(current_path).to eq '/photos'\n+      # end\n+    end\n+\n+    context 'deleting photos' do\n+      before { Photo.create(title:'Booya', caption: 'awesome') }","path":"instagram_challenge/spec/features/photos_feature_spec.rb","position":56,"original_position":56,"commit_id":"17d08c18e0ee03562cdc68a291acf18e2eee34c5","original_commit_id":"17d08c18e0ee03562cdc68a291acf18e2eee34c5","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":"Space missing after colon.","created_at":"2015-07-27T18:55:02Z","updated_at":"2015-07-27T18:55:02Z","html_url":"https://github.com/makersacademy/instagram-challenge/pull/52#discussion_r35572432","pull_request_url":"https://api.github.com/repos/makersacademy/instagram-challenge/pulls/52","_links":{"self":{"href":"https://api.github.com/repos/makersacademy/instagram-challenge/pulls/comments/35572432"},"html":{"href":"https://github.com/makersacademy/instagram-challenge/pull/52#discussion_r35572432"},"pull_request":{"href":"https://api.github.com/repos/makersacademy/instagram-challenge/pulls/52"}}},"pull_request":{"url":"https://api.github.com/repos/makersacademy/instagram-challenge/pulls/52","id":40859261,"html_url":"https://github.com/makersacademy/instagram-challenge/pull/52","diff_url":"https://github.com/makersacademy/instagram-challenge/pull/52.diff","patch_url":"https://github.com/makersacademy/instagram-challenge/pull/52.patch","issue_url":"https://api.github.com/repos/makersacademy/instagram-challenge/issues/52","number":52,"state":"open","locked":false,"title":"Instagram Challenge - initial pull request, still under way","user":{"login":"aleckz","id":12188980,"avatar_url":"https://avatars.githubusercontent.com/u/12188980?v=3","gravatar_id":"","url":"https://api.github.com/users/aleckz","html_url":"https://github.com/aleckz","followers_url":"https://api.github.com/users/aleckz/followers","following_url":"https://api.github.com/users/aleckz/following{/other_user}","gists_url":"https://api.github.com/users/aleckz/gists{/gist_id}","starred_url":"https://api.github.com/users/aleckz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aleckz/subscriptions","organizations_url":"https://api.github.com/users/aleckz/orgs","repos_url":"https://api.github.com/users/aleckz/repos","events_url":"https://api.github.com/users/aleckz/events{/privacy}","received_events_url":"https://api.github.com/users/aleckz/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-07-26T20:32:19Z","updated_at":"2015-07-27T18:55:02Z","closed_at":null,"merged_at":null,"merge_commit_sha":"3a27db1577976be8bc5781e12a42b90966ad9cda","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/makersacademy/instagram-challenge/pulls/52/commits","review_comments_url":"https://api.github.com/repos/makersacademy/instagram-challenge/pulls/52/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/52/comments","statuses_url":"https://api.github.com/repos/makersacademy/instagram-challenge/statuses/17d08c18e0ee03562cdc68a291acf18e2eee34c5","head":{"label":"aleckz:master","ref":"master","sha":"17d08c18e0ee03562cdc68a291acf18e2eee34c5","user":{"login":"aleckz","id":12188980,"avatar_url":"https://avatars.githubusercontent.com/u/12188980?v=3","gravatar_id":"","url":"https://api.github.com/users/aleckz","html_url":"https://github.com/aleckz","followers_url":"https://api.github.com/users/aleckz/followers","following_url":"https://api.github.com/users/aleckz/following{/other_user}","gists_url":"https://api.github.com/users/aleckz/gists{/gist_id}","starred_url":"https://api.github.com/users/aleckz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aleckz/subscriptions","organizations_url":"https://api.github.com/users/aleckz/orgs","repos_url":"https://api.github.com/users/aleckz/repos","events_url":"https://api.github.com/users/aleckz/events{/privacy}","received_events_url":"https://api.github.com/users/aleckz/received_events","type":"User","site_admin":false},"repo":{"id":39622889,"name":"instagram-challenge","full_name":"aleckz/instagram-challenge","owner":{"login":"aleckz","id":12188980,"avatar_url":"https://avatars.githubusercontent.com/u/12188980?v=3","gravatar_id":"","url":"https://api.github.com/users/aleckz","html_url":"https://github.com/aleckz","followers_url":"https://api.github.com/users/aleckz/followers","following_url":"https://api.github.com/users/aleckz/following{/other_user}","gists_url":"https://api.github.com/users/aleckz/gists{/gist_id}","starred_url":"https://api.github.com/users/aleckz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aleckz/subscriptions","organizations_url":"https://api.github.com/users/aleckz/orgs","repos_url":"https://api.github.com/users/aleckz/repos","events_url":"https://api.github.com/users/aleckz/events{/privacy}","received_events_url":"https://api.github.com/users/aleckz/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/aleckz/instagram-challenge","description":"Rebuild Instagram","fork":true,"url":"https://api.github.com/repos/aleckz/instagram-challenge","forks_url":"https://api.github.com/repos/aleckz/instagram-challenge/forks","keys_url":"https://api.github.com/repos/aleckz/instagram-challenge/keys{/key_id}","collaborators_url":"https://api.github.com/repos/aleckz/instagram-challenge/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/aleckz/instagram-challenge/teams","hooks_url":"https://api.github.com/repos/aleckz/instagram-challenge/hooks","issue_events_url":"https://api.github.com/repos/aleckz/instagram-challenge/issues/events{/number}","events_url":"https://api.github.com/repos/aleckz/instagram-challenge/events","assignees_url":"https://api.github.com/repos/aleckz/instagram-challenge/assignees{/user}","branches_url":"https://api.github.com/repos/aleckz/instagram-challenge/branches{/branch}","tags_url":"https://api.github.com/repos/aleckz/instagram-challenge/tags","blobs_url":"https://api.github.com/repos/aleckz/instagram-challenge/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/aleckz/instagram-challenge/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/aleckz/instagram-challenge/git/refs{/sha}","trees_url":"https://api.github.com/repos/aleckz/instagram-challenge/git/trees{/sha}","statuses_url":"https://api.github.com/repos/aleckz/instagram-challenge/statuses/{sha}","languages_url":"https://api.github.com/repos/aleckz/instagram-challenge/languages","stargazers_url":"https://api.github.com/repos/aleckz/instagram-challenge/stargazers","contributors_url":"https://api.github.com/repos/aleckz/instagram-challenge/contributors","subscribers_url":"https://api.github.com/repos/aleckz/instagram-challenge/subscribers","subscription_url":"https://api.github.com/repos/aleckz/instagram-challenge/subscription","commits_url":"https://api.github.com/repos/aleckz/instagram-challenge/commits{/sha}","git_commits_url":"https://api.github.com/repos/aleckz/instagram-challenge/git/commits{/sha}","comments_url":"https://api.github.com/repos/aleckz/instagram-challenge/comments{/number}","issue_comment_url":"https://api.github.com/repos/aleckz/instagram-challenge/issues/comments{/number}","contents_url":"https://api.github.com/repos/aleckz/instagram-challenge/contents/{+path}","compare_url":"https://api.github.com/repos/aleckz/instagram-challenge/compare/{base}...{head}","merges_url":"https://api.github.com/repos/aleckz/instagram-challenge/merges","archive_url":"https://api.github.com/repos/aleckz/instagram-challenge/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/aleckz/instagram-challenge/downloads","issues_url":"https://api.github.com/repos/aleckz/instagram-challenge/issues{/number}","pulls_url":"https://api.github.com/repos/aleckz/instagram-challenge/pulls{/number}","milestones_url":"https://api.github.com/repos/aleckz/instagram-challenge/milestones{/number}","notifications_url":"https://api.github.com/repos/aleckz/instagram-challenge/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/aleckz/instagram-challenge/labels{/name}","releases_url":"https://api.github.com/repos/aleckz/instagram-challenge/releases{/id}","created_at":"2015-07-24T09:16:13Z","updated_at":"2015-07-25T19:53:18Z","pushed_at":"2015-07-27T18:53:26Z","git_url":"git://github.com/aleckz/instagram-challenge.git","ssh_url":"git@github.com:aleckz/instagram-challenge.git","clone_url":"https://github.com/aleckz/instagram-challenge.git","svn_url":"https://github.com/aleckz/instagram-challenge","homepage":null,"size":9618,"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-27T18:53:27Z","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":79959,"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":19,"forks":87,"open_issues":19,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/makersacademy/instagram-challenge/pulls/52"},"html":{"href":"https://github.com/makersacademy/instagram-challenge/pull/52"},"issue":{"href":"https://api.github.com/repos/makersacademy/instagram-challenge/issues/52"},"comments":{"href":"https://api.github.com/repos/makersacademy/instagram-challenge/issues/52/comments"},"review_comments":{"href":"https://api.github.com/repos/makersacademy/instagram-challenge/pulls/52/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/52/commits"},"statuses":{"href":"https://api.github.com/repos/makersacademy/instagram-challenge/statuses/17d08c18e0ee03562cdc68a291acf18e2eee34c5"}}}}