{"action":"created","comment":{"url":"https://api.github.com/repos/makersacademy/instagram-challenge/pulls/comments/55202682","id":55202682,"diff_hunk":"@@ -0,0 +1,123 @@\n+require 'rails_helper'\n+\n+feature 'pictures' do\n+\n+  context 'no pictures have been added' do\n+    before do\n+      visit('/')\n+      click_link('Sign up')\n+      fill_in('Email', with: 'test@example.com')\n+      fill_in('Password', with: 'testtest')\n+      fill_in('Password confirmation', with: 'testtest')\n+      click_button('Sign up')\n+    end\n+    scenario 'should display a prompt to add a picture' do\n+      visit '/pictures'\n+      expect(page).to have_content 'No pictures yet'\n+      expect(page).to have_link 'Add a picture'\n+    end\n+  end\n+\n+  context 'pictures have been added' do\n+    before do\n+      Picture.create(postcomment: 'My first pic')\n+    end\n+\n+    scenario 'display pictures' do\n+      visit '/pictures'\n+      expect(page).to have_content('My first pic')\n+      expect(page).not_to have_content('No pictures yet')\n+    end\n+  end\n+\n+  context 'creating pictures' do\n+    before do\n+      visit('/')\n+      click_link('Sign up')\n+      fill_in('Email', with: 'test@example.com')\n+      fill_in('Password', with: 'testtest')\n+      fill_in('Password confirmation', with: 'testtest')\n+      click_button('Sign up')\n+    end\n+  scenario 'prompts user to fill out a form, then displays the new picture' do\n+    visit '/pictures'\n+    click_link 'Add a picture'\n+    fill_in 'picture[postcomment]', with: 'My first selfie'\n+    click_button 'Create Picture'\n+    expect(page).to have_content 'My first selfie'\n+    expect(current_path).to eq '/pictures'\n+  end\n+\n+  context 'an invalid picture' do\n+    it 'does not let you submit a post comment that is too long' do\n+      visit '/pictures'\n+      click_link 'Add a picture'\n+      fill_in 'picture[postcomment]', with: '111111111122222222223333333333' +\n+      '4444444444555555555566666666667777777777888888888899999999990000000000' +","path":"spec/features/pictures_feature_spec.rb","position":56,"original_position":56,"commit_id":"f9eee98427f75f9bc5a6b38fa5348c581220f266","original_commit_id":"f9eee98427f75f9bc5a6b38fa5348c581220f266","user":{"login":"houndci-bot","id":6697940,"avatar_url":"https://avatars.githubusercontent.com/u/6697940?v=3","gravatar_id":"","url":"https://api.github.com/users/houndci-bot","html_url":"https://github.com/houndci-bot","followers_url":"https://api.github.com/users/houndci-bot/followers","following_url":"https://api.github.com/users/houndci-bot/following{/other_user}","gists_url":"https://api.github.com/users/houndci-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci-bot/subscriptions","organizations_url":"https://api.github.com/users/houndci-bot/orgs","repos_url":"https://api.github.com/users/houndci-bot/repos","events_url":"https://api.github.com/users/houndci-bot/events{/privacy}","received_events_url":"https://api.github.com/users/houndci-bot/received_events","type":"User","site_admin":false},"body":"Style/LineEndConcatenation: Use `\\` instead of `+` or `<<` to concatenate those strings.<br>Style/MultilineOperationIndentation: Align the operands of an expression spanning multiple lines.","created_at":"2016-03-07T13:31:32Z","updated_at":"2016-03-07T13:31:32Z","html_url":"https://github.com/makersacademy/instagram-challenge/pull/211#discussion_r55202682","pull_request_url":"https://api.github.com/repos/makersacademy/instagram-challenge/pulls/211","_links":{"self":{"href":"https://api.github.com/repos/makersacademy/instagram-challenge/pulls/comments/55202682"},"html":{"href":"https://github.com/makersacademy/instagram-challenge/pull/211#discussion_r55202682"},"pull_request":{"href":"https://api.github.com/repos/makersacademy/instagram-challenge/pulls/211"}}},"pull_request":{"url":"https://api.github.com/repos/makersacademy/instagram-challenge/pulls/211","id":61916993,"html_url":"https://github.com/makersacademy/instagram-challenge/pull/211","diff_url":"https://github.com/makersacademy/instagram-challenge/pull/211.diff","patch_url":"https://github.com/makersacademy/instagram-challenge/pull/211.patch","issue_url":"https://api.github.com/repos/makersacademy/instagram-challenge/issues/211","number":211,"state":"open","locked":false,"title":"Instagram challenge","user":{"login":"barrygrubb","id":14848777,"avatar_url":"https://avatars.githubusercontent.com/u/14848777?v=3","gravatar_id":"","url":"https://api.github.com/users/barrygrubb","html_url":"https://github.com/barrygrubb","followers_url":"https://api.github.com/users/barrygrubb/followers","following_url":"https://api.github.com/users/barrygrubb/following{/other_user}","gists_url":"https://api.github.com/users/barrygrubb/gists{/gist_id}","starred_url":"https://api.github.com/users/barrygrubb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/barrygrubb/subscriptions","organizations_url":"https://api.github.com/users/barrygrubb/orgs","repos_url":"https://api.github.com/users/barrygrubb/repos","events_url":"https://api.github.com/users/barrygrubb/events{/privacy}","received_events_url":"https://api.github.com/users/barrygrubb/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-03-07T13:31:07Z","updated_at":"2016-03-07T13:31:32Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f0f9770ede5c7ab5bb04565a20187f0e67a0d786","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/makersacademy/instagram-challenge/pulls/211/commits","review_comments_url":"https://api.github.com/repos/makersacademy/instagram-challenge/pulls/211/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/211/comments","statuses_url":"https://api.github.com/repos/makersacademy/instagram-challenge/statuses/f9eee98427f75f9bc5a6b38fa5348c581220f266","head":{"label":"barrygrubb:master","ref":"master","sha":"f9eee98427f75f9bc5a6b38fa5348c581220f266","user":{"login":"barrygrubb","id":14848777,"avatar_url":"https://avatars.githubusercontent.com/u/14848777?v=3","gravatar_id":"","url":"https://api.github.com/users/barrygrubb","html_url":"https://github.com/barrygrubb","followers_url":"https://api.github.com/users/barrygrubb/followers","following_url":"https://api.github.com/users/barrygrubb/following{/other_user}","gists_url":"https://api.github.com/users/barrygrubb/gists{/gist_id}","starred_url":"https://api.github.com/users/barrygrubb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/barrygrubb/subscriptions","organizations_url":"https://api.github.com/users/barrygrubb/orgs","repos_url":"https://api.github.com/users/barrygrubb/repos","events_url":"https://api.github.com/users/barrygrubb/events{/privacy}","received_events_url":"https://api.github.com/users/barrygrubb/received_events","type":"User","site_admin":false},"repo":{"id":53221653,"name":"instagram-challenge","full_name":"barrygrubb/instagram-challenge","owner":{"login":"barrygrubb","id":14848777,"avatar_url":"https://avatars.githubusercontent.com/u/14848777?v=3","gravatar_id":"","url":"https://api.github.com/users/barrygrubb","html_url":"https://github.com/barrygrubb","followers_url":"https://api.github.com/users/barrygrubb/followers","following_url":"https://api.github.com/users/barrygrubb/following{/other_user}","gists_url":"https://api.github.com/users/barrygrubb/gists{/gist_id}","starred_url":"https://api.github.com/users/barrygrubb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/barrygrubb/subscriptions","organizations_url":"https://api.github.com/users/barrygrubb/orgs","repos_url":"https://api.github.com/users/barrygrubb/repos","events_url":"https://api.github.com/users/barrygrubb/events{/privacy}","received_events_url":"https://api.github.com/users/barrygrubb/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/barrygrubb/instagram-challenge","description":"Rebuild Instagram","fork":true,"url":"https://api.github.com/repos/barrygrubb/instagram-challenge","forks_url":"https://api.github.com/repos/barrygrubb/instagram-challenge/forks","keys_url":"https://api.github.com/repos/barrygrubb/instagram-challenge/keys{/key_id}","collaborators_url":"https://api.github.com/repos/barrygrubb/instagram-challenge/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/barrygrubb/instagram-challenge/teams","hooks_url":"https://api.github.com/repos/barrygrubb/instagram-challenge/hooks","issue_events_url":"https://api.github.com/repos/barrygrubb/instagram-challenge/issues/events{/number}","events_url":"https://api.github.com/repos/barrygrubb/instagram-challenge/events","assignees_url":"https://api.github.com/repos/barrygrubb/instagram-challenge/assignees{/user}","branches_url":"https://api.github.com/repos/barrygrubb/instagram-challenge/branches{/branch}","tags_url":"https://api.github.com/repos/barrygrubb/instagram-challenge/tags","blobs_url":"https://api.github.com/repos/barrygrubb/instagram-challenge/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/barrygrubb/instagram-challenge/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/barrygrubb/instagram-challenge/git/refs{/sha}","trees_url":"https://api.github.com/repos/barrygrubb/instagram-challenge/git/trees{/sha}","statuses_url":"https://api.github.com/repos/barrygrubb/instagram-challenge/statuses/{sha}","languages_url":"https://api.github.com/repos/barrygrubb/instagram-challenge/languages","stargazers_url":"https://api.github.com/repos/barrygrubb/instagram-challenge/stargazers","contributors_url":"https://api.github.com/repos/barrygrubb/instagram-challenge/contributors","subscribers_url":"https://api.github.com/repos/barrygrubb/instagram-challenge/subscribers","subscription_url":"https://api.github.com/repos/barrygrubb/instagram-challenge/subscription","commits_url":"https://api.github.com/repos/barrygrubb/instagram-challenge/commits{/sha}","git_commits_url":"https://api.github.com/repos/barrygrubb/instagram-challenge/git/commits{/sha}","comments_url":"https://api.github.com/repos/barrygrubb/instagram-challenge/comments{/number}","issue_comment_url":"https://api.github.com/repos/barrygrubb/instagram-challenge/issues/comments{/number}","contents_url":"https://api.github.com/repos/barrygrubb/instagram-challenge/contents/{+path}","compare_url":"https://api.github.com/repos/barrygrubb/instagram-challenge/compare/{base}...{head}","merges_url":"https://api.github.com/repos/barrygrubb/instagram-challenge/merges","archive_url":"https://api.github.com/repos/barrygrubb/instagram-challenge/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/barrygrubb/instagram-challenge/downloads","issues_url":"https://api.github.com/repos/barrygrubb/instagram-challenge/issues{/number}","pulls_url":"https://api.github.com/repos/barrygrubb/instagram-challenge/pulls{/number}","milestones_url":"https://api.github.com/repos/barrygrubb/instagram-challenge/milestones{/number}","notifications_url":"https://api.github.com/repos/barrygrubb/instagram-challenge/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/barrygrubb/instagram-challenge/labels{/name}","releases_url":"https://api.github.com/repos/barrygrubb/instagram-challenge/releases{/id}","deployments_url":"https://api.github.com/repos/barrygrubb/instagram-challenge/deployments","created_at":"2016-03-05T20:26:55Z","updated_at":"2016-03-06T09:41:07Z","pushed_at":"2016-03-06T21:55:17Z","git_url":"git://github.com/barrygrubb/instagram-challenge.git","ssh_url":"git@github.com:barrygrubb/instagram-challenge.git","clone_url":"https://github.com/barrygrubb/instagram-challenge.git","svn_url":"https://github.com/barrygrubb/instagram-challenge","homepage":null,"size":89,"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":"ea4b46af63e6e77a11e9096e462d9615a78210f3","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}","deployments_url":"https://api.github.com/repos/makersacademy/instagram-challenge/deployments","created_at":"2014-11-22T17:26:37Z","updated_at":"2016-03-04T17:15:00Z","pushed_at":"2016-03-07T13:31:08Z","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":291317,"stargazers_count":2,"watchers_count":2,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":256,"mirror_url":null,"open_issues_count":52,"forks":256,"open_issues":52,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/makersacademy/instagram-challenge/pulls/211"},"html":{"href":"https://github.com/makersacademy/instagram-challenge/pull/211"},"issue":{"href":"https://api.github.com/repos/makersacademy/instagram-challenge/issues/211"},"comments":{"href":"https://api.github.com/repos/makersacademy/instagram-challenge/issues/211/comments"},"review_comments":{"href":"https://api.github.com/repos/makersacademy/instagram-challenge/pulls/211/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/211/commits"},"statuses":{"href":"https://api.github.com/repos/makersacademy/instagram-challenge/statuses/f9eee98427f75f9bc5a6b38fa5348c581220f266"}}}}