{"action":"created","comment":{"url":"https://api.github.com/repos/makersacademy/instagram-challenge/pulls/comments/38842210","id":38842210,"diff_hunk":"@@ -0,0 +1,22 @@\n+require 'rails_helper'\n+\n+RSpec.describe Picture, type: :model do\n+  let(:user) { User.create email: 'testuser@email.com', password: \"password\", password_confirmation: \"password\" }\n+\n+  it { should belong_to :user }\n+\n+  it { should validate_presence_of :user }\n+\n+  it { should validate_presence_of :title }\n+\n+  it { should have_attached_file :image }\n+\n+  it { should validate_attachment_presence :image }\n+\n+  it { should validate_attachment_size(:image).\n+                less_than(1.megabyte) }\n+\n+  it { should validate_attachment_content_type(:image).","path":"spec/models/picture_spec.rb","position":19,"original_position":19,"commit_id":"d97758e101ec164193b59c023e279e1b74ed5155","original_commit_id":"d97758e101ec164193b59c023e279e1b74ed5155","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":"Avoid using {...} for multi-line blocks.<br>Block body expression is on the same line as the block start.","created_at":"2015-09-07T08:27:09Z","updated_at":"2015-09-07T08:27:09Z","html_url":"https://github.com/makersacademy/instagram-challenge/pull/88#discussion_r38842210","pull_request_url":"https://api.github.com/repos/makersacademy/instagram-challenge/pulls/88","_links":{"self":{"href":"https://api.github.com/repos/makersacademy/instagram-challenge/pulls/comments/38842210"},"html":{"href":"https://github.com/makersacademy/instagram-challenge/pull/88#discussion_r38842210"},"pull_request":{"href":"https://api.github.com/repos/makersacademy/instagram-challenge/pulls/88"}}},"pull_request":{"url":"https://api.github.com/repos/makersacademy/instagram-challenge/pulls/88","id":44330891,"html_url":"https://github.com/makersacademy/instagram-challenge/pull/88","diff_url":"https://github.com/makersacademy/instagram-challenge/pull/88.diff","patch_url":"https://github.com/makersacademy/instagram-challenge/pull/88.patch","issue_url":"https://api.github.com/repos/makersacademy/instagram-challenge/issues/88","number":88,"state":"open","locked":false,"title":"Instagram Challenge","user":{"login":"Yorkshireman","id":8686588,"avatar_url":"https://avatars.githubusercontent.com/u/8686588?v=3","gravatar_id":"","url":"https://api.github.com/users/Yorkshireman","html_url":"https://github.com/Yorkshireman","followers_url":"https://api.github.com/users/Yorkshireman/followers","following_url":"https://api.github.com/users/Yorkshireman/following{/other_user}","gists_url":"https://api.github.com/users/Yorkshireman/gists{/gist_id}","starred_url":"https://api.github.com/users/Yorkshireman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Yorkshireman/subscriptions","organizations_url":"https://api.github.com/users/Yorkshireman/orgs","repos_url":"https://api.github.com/users/Yorkshireman/repos","events_url":"https://api.github.com/users/Yorkshireman/events{/privacy}","received_events_url":"https://api.github.com/users/Yorkshireman/received_events","type":"User","site_admin":false},"body":"Database is buggered in development and testing. Having trouble fixing it.","created_at":"2015-09-07T08:26:58Z","updated_at":"2015-09-07T08:27:09Z","closed_at":null,"merged_at":null,"merge_commit_sha":"59ba2554e77edaf156108bc13fd96bd38bebc3c7","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/makersacademy/instagram-challenge/pulls/88/commits","review_comments_url":"https://api.github.com/repos/makersacademy/instagram-challenge/pulls/88/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/88/comments","statuses_url":"https://api.github.com/repos/makersacademy/instagram-challenge/statuses/d97758e101ec164193b59c023e279e1b74ed5155","head":{"label":"Yorkshireman:master","ref":"master","sha":"d97758e101ec164193b59c023e279e1b74ed5155","user":{"login":"Yorkshireman","id":8686588,"avatar_url":"https://avatars.githubusercontent.com/u/8686588?v=3","gravatar_id":"","url":"https://api.github.com/users/Yorkshireman","html_url":"https://github.com/Yorkshireman","followers_url":"https://api.github.com/users/Yorkshireman/followers","following_url":"https://api.github.com/users/Yorkshireman/following{/other_user}","gists_url":"https://api.github.com/users/Yorkshireman/gists{/gist_id}","starred_url":"https://api.github.com/users/Yorkshireman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Yorkshireman/subscriptions","organizations_url":"https://api.github.com/users/Yorkshireman/orgs","repos_url":"https://api.github.com/users/Yorkshireman/repos","events_url":"https://api.github.com/users/Yorkshireman/events{/privacy}","received_events_url":"https://api.github.com/users/Yorkshireman/received_events","type":"User","site_admin":false},"repo":{"id":41970371,"name":"instagram-challenge","full_name":"Yorkshireman/instagram-challenge","owner":{"login":"Yorkshireman","id":8686588,"avatar_url":"https://avatars.githubusercontent.com/u/8686588?v=3","gravatar_id":"","url":"https://api.github.com/users/Yorkshireman","html_url":"https://github.com/Yorkshireman","followers_url":"https://api.github.com/users/Yorkshireman/followers","following_url":"https://api.github.com/users/Yorkshireman/following{/other_user}","gists_url":"https://api.github.com/users/Yorkshireman/gists{/gist_id}","starred_url":"https://api.github.com/users/Yorkshireman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Yorkshireman/subscriptions","organizations_url":"https://api.github.com/users/Yorkshireman/orgs","repos_url":"https://api.github.com/users/Yorkshireman/repos","events_url":"https://api.github.com/users/Yorkshireman/events{/privacy}","received_events_url":"https://api.github.com/users/Yorkshireman/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Yorkshireman/instagram-challenge","description":"Rebuild Instagram","fork":true,"url":"https://api.github.com/repos/Yorkshireman/instagram-challenge","forks_url":"https://api.github.com/repos/Yorkshireman/instagram-challenge/forks","keys_url":"https://api.github.com/repos/Yorkshireman/instagram-challenge/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Yorkshireman/instagram-challenge/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Yorkshireman/instagram-challenge/teams","hooks_url":"https://api.github.com/repos/Yorkshireman/instagram-challenge/hooks","issue_events_url":"https://api.github.com/repos/Yorkshireman/instagram-challenge/issues/events{/number}","events_url":"https://api.github.com/repos/Yorkshireman/instagram-challenge/events","assignees_url":"https://api.github.com/repos/Yorkshireman/instagram-challenge/assignees{/user}","branches_url":"https://api.github.com/repos/Yorkshireman/instagram-challenge/branches{/branch}","tags_url":"https://api.github.com/repos/Yorkshireman/instagram-challenge/tags","blobs_url":"https://api.github.com/repos/Yorkshireman/instagram-challenge/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Yorkshireman/instagram-challenge/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Yorkshireman/instagram-challenge/git/refs{/sha}","trees_url":"https://api.github.com/repos/Yorkshireman/instagram-challenge/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Yorkshireman/instagram-challenge/statuses/{sha}","languages_url":"https://api.github.com/repos/Yorkshireman/instagram-challenge/languages","stargazers_url":"https://api.github.com/repos/Yorkshireman/instagram-challenge/stargazers","contributors_url":"https://api.github.com/repos/Yorkshireman/instagram-challenge/contributors","subscribers_url":"https://api.github.com/repos/Yorkshireman/instagram-challenge/subscribers","subscription_url":"https://api.github.com/repos/Yorkshireman/instagram-challenge/subscription","commits_url":"https://api.github.com/repos/Yorkshireman/instagram-challenge/commits{/sha}","git_commits_url":"https://api.github.com/repos/Yorkshireman/instagram-challenge/git/commits{/sha}","comments_url":"https://api.github.com/repos/Yorkshireman/instagram-challenge/comments{/number}","issue_comment_url":"https://api.github.com/repos/Yorkshireman/instagram-challenge/issues/comments{/number}","contents_url":"https://api.github.com/repos/Yorkshireman/instagram-challenge/contents/{+path}","compare_url":"https://api.github.com/repos/Yorkshireman/instagram-challenge/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Yorkshireman/instagram-challenge/merges","archive_url":"https://api.github.com/repos/Yorkshireman/instagram-challenge/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Yorkshireman/instagram-challenge/downloads","issues_url":"https://api.github.com/repos/Yorkshireman/instagram-challenge/issues{/number}","pulls_url":"https://api.github.com/repos/Yorkshireman/instagram-challenge/pulls{/number}","milestones_url":"https://api.github.com/repos/Yorkshireman/instagram-challenge/milestones{/number}","notifications_url":"https://api.github.com/repos/Yorkshireman/instagram-challenge/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Yorkshireman/instagram-challenge/labels{/name}","releases_url":"https://api.github.com/repos/Yorkshireman/instagram-challenge/releases{/id}","created_at":"2015-09-05T17:54:08Z","updated_at":"2015-09-05T17:55:55Z","pushed_at":"2015-09-06T13:05:34Z","git_url":"git://github.com/Yorkshireman/instagram-challenge.git","ssh_url":"git@github.com:Yorkshireman/instagram-challenge.git","clone_url":"https://github.com/Yorkshireman/instagram-challenge.git","svn_url":"https://github.com/Yorkshireman/instagram-challenge","homepage":null,"size":178,"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":"13ec04df4918bdda1ef4b5ddbb1b6c232c87b174","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-09-07T08:26:58Z","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":105135,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":117,"mirror_url":null,"open_issues_count":38,"forks":117,"open_issues":38,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/makersacademy/instagram-challenge/pulls/88"},"html":{"href":"https://github.com/makersacademy/instagram-challenge/pull/88"},"issue":{"href":"https://api.github.com/repos/makersacademy/instagram-challenge/issues/88"},"comments":{"href":"https://api.github.com/repos/makersacademy/instagram-challenge/issues/88/comments"},"review_comments":{"href":"https://api.github.com/repos/makersacademy/instagram-challenge/pulls/88/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/88/commits"},"statuses":{"href":"https://api.github.com/repos/makersacademy/instagram-challenge/statuses/d97758e101ec164193b59c023e279e1b74ed5155"}}}}