{"action":"created","comment":{"url":"https://api.github.com/repos/makersacademy/instagram-challenge/pulls/comments/30312725","id":30312725,"diff_hunk":"@@ -0,0 +1,102 @@\n+require 'rails_helper'\n+\n+feature 'Images' do\n+\n+  before do\n+    sign_up_and_sign_in\n+  end\n+\n+  context 'Website on initialization' do\n+\n+    scenario 'should display a prompt to add an image' do\n+      visit '/images'\n+      expect(page).to have_content 'No Images Yet'\n+      expect(page).to have_link 'Upload Image'\n+    end\n+  end\n+\n+  context 'when image has been added in the database' do\n+\n+    before do\n+      create_an_image\n+    end\n+\n+    scenario 'will display image description' do\n+      visit '/images'\n+      expect(page).to have_content('My face')\n+      expect(page).not_to have_content('No Images Yet')\n+    end\n+  end\n+\n+  context 'when user uploads images' do\n+\n+    scenario 'prompts them to enter a description, then displays description' do\n+      create_an_image\n+      expect(page).to have_content 'My face'\n+      expect(current_path).to eq '/images'\n+    end\n+\n+    scenario 'they must attach an image' do\n+      visit '/'\n+      click_link 'Upload Image'\n+      fill_in 'Description', with: 'My face'\n+      click_button 'Upload'\n+      expect(page).not_to have_content 'My face'\n+    end\n+  end\n+\n+  context 'when user visits website' do\n+\n+    scenario 'lets them view uploaded images' do\n+      create_an_image\n+      sign_out\n+      visit '/'\n+      expect(page).to have_content 'My face'\n+    end\n+  end\n+\n+  context 'editing image descriptions' do","path":"spec/features/images_feature_spec.rb","position":58,"original_position":58,"commit_id":"4607942b8b2428fca5e4ee205a62ec1ec09df189","original_commit_id":"4607942b8b2428fca5e4ee205a62ec1ec09df189","user":{"login":"spike01","id":7307631,"avatar_url":"https://avatars.githubusercontent.com/u/7307631?v=3","gravatar_id":"","url":"https://api.github.com/users/spike01","html_url":"https://github.com/spike01","followers_url":"https://api.github.com/users/spike01/followers","following_url":"https://api.github.com/users/spike01/following{/other_user}","gists_url":"https://api.github.com/users/spike01/gists{/gist_id}","starred_url":"https://api.github.com/users/spike01/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spike01/subscriptions","organizations_url":"https://api.github.com/users/spike01/orgs","repos_url":"https://api.github.com/users/spike01/repos","events_url":"https://api.github.com/users/spike01/events{/privacy}","received_events_url":"https://api.github.com/users/spike01/received_events","type":"User","site_admin":false},"body":"Be consistent with context block formatting - you've used `when` so far, why stop now?","created_at":"2015-05-14T10:54:53Z","updated_at":"2015-05-14T10:54:53Z","html_url":"https://github.com/makersacademy/instagram-challenge/pull/21#discussion_r30312725","pull_request_url":"https://api.github.com/repos/makersacademy/instagram-challenge/pulls/21","_links":{"self":{"href":"https://api.github.com/repos/makersacademy/instagram-challenge/pulls/comments/30312725"},"html":{"href":"https://github.com/makersacademy/instagram-challenge/pull/21#discussion_r30312725"},"pull_request":{"href":"https://api.github.com/repos/makersacademy/instagram-challenge/pulls/21"}}},"pull_request":{"url":"https://api.github.com/repos/makersacademy/instagram-challenge/pulls/21","id":35082711,"html_url":"https://github.com/makersacademy/instagram-challenge/pull/21","diff_url":"https://github.com/makersacademy/instagram-challenge/pull/21.diff","patch_url":"https://github.com/makersacademy/instagram-challenge/pull/21.patch","issue_url":"https://api.github.com/repos/makersacademy/instagram-challenge/issues/21","number":21,"state":"open","locked":false,"title":"Pull Request","user":{"login":"sanjsanj","id":4478671,"avatar_url":"https://avatars.githubusercontent.com/u/4478671?v=3","gravatar_id":"","url":"https://api.github.com/users/sanjsanj","html_url":"https://github.com/sanjsanj","followers_url":"https://api.github.com/users/sanjsanj/followers","following_url":"https://api.github.com/users/sanjsanj/following{/other_user}","gists_url":"https://api.github.com/users/sanjsanj/gists{/gist_id}","starred_url":"https://api.github.com/users/sanjsanj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sanjsanj/subscriptions","organizations_url":"https://api.github.com/users/sanjsanj/orgs","repos_url":"https://api.github.com/users/sanjsanj/repos","events_url":"https://api.github.com/users/sanjsanj/events{/privacy}","received_events_url":"https://api.github.com/users/sanjsanj/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-05-10T13:41:46Z","updated_at":"2015-05-14T10:54:53Z","closed_at":null,"merged_at":null,"merge_commit_sha":"9da9a4c68ef945e28f06c104bd332e29e1780748","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/makersacademy/instagram-challenge/pulls/21/commits","review_comments_url":"https://api.github.com/repos/makersacademy/instagram-challenge/pulls/21/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/21/comments","statuses_url":"https://api.github.com/repos/makersacademy/instagram-challenge/statuses/4607942b8b2428fca5e4ee205a62ec1ec09df189","head":{"label":"sanjsanj:master","ref":"master","sha":"4607942b8b2428fca5e4ee205a62ec1ec09df189","user":{"login":"sanjsanj","id":4478671,"avatar_url":"https://avatars.githubusercontent.com/u/4478671?v=3","gravatar_id":"","url":"https://api.github.com/users/sanjsanj","html_url":"https://github.com/sanjsanj","followers_url":"https://api.github.com/users/sanjsanj/followers","following_url":"https://api.github.com/users/sanjsanj/following{/other_user}","gists_url":"https://api.github.com/users/sanjsanj/gists{/gist_id}","starred_url":"https://api.github.com/users/sanjsanj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sanjsanj/subscriptions","organizations_url":"https://api.github.com/users/sanjsanj/orgs","repos_url":"https://api.github.com/users/sanjsanj/repos","events_url":"https://api.github.com/users/sanjsanj/events{/privacy}","received_events_url":"https://api.github.com/users/sanjsanj/received_events","type":"User","site_admin":false},"repo":{"id":35271037,"name":"instagram-challenge","full_name":"sanjsanj/instagram-challenge","owner":{"login":"sanjsanj","id":4478671,"avatar_url":"https://avatars.githubusercontent.com/u/4478671?v=3","gravatar_id":"","url":"https://api.github.com/users/sanjsanj","html_url":"https://github.com/sanjsanj","followers_url":"https://api.github.com/users/sanjsanj/followers","following_url":"https://api.github.com/users/sanjsanj/following{/other_user}","gists_url":"https://api.github.com/users/sanjsanj/gists{/gist_id}","starred_url":"https://api.github.com/users/sanjsanj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sanjsanj/subscriptions","organizations_url":"https://api.github.com/users/sanjsanj/orgs","repos_url":"https://api.github.com/users/sanjsanj/repos","events_url":"https://api.github.com/users/sanjsanj/events{/privacy}","received_events_url":"https://api.github.com/users/sanjsanj/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/sanjsanj/instagram-challenge","description":"Rebuild Instagram","fork":true,"url":"https://api.github.com/repos/sanjsanj/instagram-challenge","forks_url":"https://api.github.com/repos/sanjsanj/instagram-challenge/forks","keys_url":"https://api.github.com/repos/sanjsanj/instagram-challenge/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sanjsanj/instagram-challenge/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sanjsanj/instagram-challenge/teams","hooks_url":"https://api.github.com/repos/sanjsanj/instagram-challenge/hooks","issue_events_url":"https://api.github.com/repos/sanjsanj/instagram-challenge/issues/events{/number}","events_url":"https://api.github.com/repos/sanjsanj/instagram-challenge/events","assignees_url":"https://api.github.com/repos/sanjsanj/instagram-challenge/assignees{/user}","branches_url":"https://api.github.com/repos/sanjsanj/instagram-challenge/branches{/branch}","tags_url":"https://api.github.com/repos/sanjsanj/instagram-challenge/tags","blobs_url":"https://api.github.com/repos/sanjsanj/instagram-challenge/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sanjsanj/instagram-challenge/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sanjsanj/instagram-challenge/git/refs{/sha}","trees_url":"https://api.github.com/repos/sanjsanj/instagram-challenge/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sanjsanj/instagram-challenge/statuses/{sha}","languages_url":"https://api.github.com/repos/sanjsanj/instagram-challenge/languages","stargazers_url":"https://api.github.com/repos/sanjsanj/instagram-challenge/stargazers","contributors_url":"https://api.github.com/repos/sanjsanj/instagram-challenge/contributors","subscribers_url":"https://api.github.com/repos/sanjsanj/instagram-challenge/subscribers","subscription_url":"https://api.github.com/repos/sanjsanj/instagram-challenge/subscription","commits_url":"https://api.github.com/repos/sanjsanj/instagram-challenge/commits{/sha}","git_commits_url":"https://api.github.com/repos/sanjsanj/instagram-challenge/git/commits{/sha}","comments_url":"https://api.github.com/repos/sanjsanj/instagram-challenge/comments{/number}","issue_comment_url":"https://api.github.com/repos/sanjsanj/instagram-challenge/issues/comments{/number}","contents_url":"https://api.github.com/repos/sanjsanj/instagram-challenge/contents/{+path}","compare_url":"https://api.github.com/repos/sanjsanj/instagram-challenge/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sanjsanj/instagram-challenge/merges","archive_url":"https://api.github.com/repos/sanjsanj/instagram-challenge/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sanjsanj/instagram-challenge/downloads","issues_url":"https://api.github.com/repos/sanjsanj/instagram-challenge/issues{/number}","pulls_url":"https://api.github.com/repos/sanjsanj/instagram-challenge/pulls{/number}","milestones_url":"https://api.github.com/repos/sanjsanj/instagram-challenge/milestones{/number}","notifications_url":"https://api.github.com/repos/sanjsanj/instagram-challenge/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sanjsanj/instagram-challenge/labels{/name}","releases_url":"https://api.github.com/repos/sanjsanj/instagram-challenge/releases{/id}","created_at":"2015-05-08T09:34:03Z","updated_at":"2015-05-10T21:16:33Z","pushed_at":"2015-05-11T10:16:40Z","git_url":"git://github.com/sanjsanj/instagram-challenge.git","ssh_url":"git@github.com:sanjsanj/instagram-challenge.git","clone_url":"https://github.com/sanjsanj/instagram-challenge.git","svn_url":"https://github.com/sanjsanj/instagram-challenge","homepage":null,"size":795,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","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":"7580ee6f6b43c91e282873a2d8193893933f0c01","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-05-11T10:16:41Z","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":25141,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":48,"mirror_url":null,"open_issues_count":14,"forks":48,"open_issues":14,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/makersacademy/instagram-challenge/pulls/21"},"html":{"href":"https://github.com/makersacademy/instagram-challenge/pull/21"},"issue":{"href":"https://api.github.com/repos/makersacademy/instagram-challenge/issues/21"},"comments":{"href":"https://api.github.com/repos/makersacademy/instagram-challenge/issues/21/comments"},"review_comments":{"href":"https://api.github.com/repos/makersacademy/instagram-challenge/pulls/21/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/21/commits"},"statuses":{"href":"https://api.github.com/repos/makersacademy/instagram-challenge/statuses/4607942b8b2428fca5e4ee205a62ec1ec09df189"}}}}