{"action":"created","comment":{"url":"https://api.github.com/repos/kravinskylev/dinner_dash/pulls/comments/32806152","id":32806152,"diff_hunk":"@@ -15,33 +26,48 @@ def valid_attributes\n     expect(user).to be_valid\n   end\n \n-  it 'should not be valid without a name' do\n+  it 'should not be valid without a full name' do\n     user = User.create(valid_attributes)\n     user.name = nil\n \n     expect(user).to_not be_valid\n   end\n \n-  it 'should not be valid without an email address' do\n+  it 'name should not be valid with only spaces' do\n     user = User.create(valid_attributes)\n-    user.email_address = nil\n+    user.name = \"     \"\n \n     expect(user).to_not be_valid\n   end\n \n-  it 'should not be valid without a username' do\n+  it 'username should not be valid with less than 2 characters' do\n     user = User.create(valid_attributes)\n-    user.username = nil\n+    user.username = \"x\"\n \n     expect(user).to_not be_valid\n   end\n \n-  it 'should have a unique username' do\n-    2.times { User.create(valid_attributes) }\n+  it 'username should not be valid with more than 32 characters' do\n+    user = User.create(valid_attributes)\n+    user.username = \"x\" * 33\n \n-    username_count = User.where(username: \"username\").count\n+    expect(user).to_not be_valid\n+  end\n \n-    expect(username_count).to eq(1)\n+  it 'can leave the username blank and their full name will be used' do\n+    user = User.create(name: \"name\",\n+      email_address: \"user@email.com\",\n+      username: nil,","path":"spec/models/user_spec.rb","position":72,"original_position":72,"commit_id":"e22d8edc3347298c5c58c502e6f950456b261d3b","original_commit_id":"e22d8edc3347298c5c58c502e6f950456b261d3b","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":"Align the elements of a hash literal if they span more than one line.","created_at":"2015-06-19T07:16:56Z","updated_at":"2015-06-19T07:16:56Z","html_url":"https://github.com/kravinskylev/dinner_dash/pull/76#discussion_r32806152","pull_request_url":"https://api.github.com/repos/kravinskylev/dinner_dash/pulls/76","_links":{"self":{"href":"https://api.github.com/repos/kravinskylev/dinner_dash/pulls/comments/32806152"},"html":{"href":"https://github.com/kravinskylev/dinner_dash/pull/76#discussion_r32806152"},"pull_request":{"href":"https://api.github.com/repos/kravinskylev/dinner_dash/pulls/76"}}},"pull_request":{"url":"https://api.github.com/repos/kravinskylev/dinner_dash/pulls/76","id":38082436,"html_url":"https://github.com/kravinskylev/dinner_dash/pull/76","diff_url":"https://github.com/kravinskylev/dinner_dash/pull/76.diff","patch_url":"https://github.com/kravinskylev/dinner_dash/pull/76.patch","issue_url":"https://api.github.com/repos/kravinskylev/dinner_dash/issues/76","number":76,"state":"open","locked":false,"title":"Un authenticated user #8","user":{"login":"RickBacci","id":252278,"avatar_url":"https://avatars.githubusercontent.com/u/252278?v=3","gravatar_id":"","url":"https://api.github.com/users/RickBacci","html_url":"https://github.com/RickBacci","followers_url":"https://api.github.com/users/RickBacci/followers","following_url":"https://api.github.com/users/RickBacci/following{/other_user}","gists_url":"https://api.github.com/users/RickBacci/gists{/gist_id}","starred_url":"https://api.github.com/users/RickBacci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RickBacci/subscriptions","organizations_url":"https://api.github.com/users/RickBacci/orgs","repos_url":"https://api.github.com/users/RickBacci/repos","events_url":"https://api.github.com/users/RickBacci/events{/privacy}","received_events_url":"https://api.github.com/users/RickBacci/received_events","type":"User","site_admin":false},"body":"closes #8","created_at":"2015-06-19T07:16:51Z","updated_at":"2015-06-19T07:16:56Z","closed_at":null,"merged_at":null,"merge_commit_sha":"205063a8f951230b90d85b80e5c38362a4045d3e","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/kravinskylev/dinner_dash/pulls/76/commits","review_comments_url":"https://api.github.com/repos/kravinskylev/dinner_dash/pulls/76/comments","review_comment_url":"https://api.github.com/repos/kravinskylev/dinner_dash/pulls/comments{/number}","comments_url":"https://api.github.com/repos/kravinskylev/dinner_dash/issues/76/comments","statuses_url":"https://api.github.com/repos/kravinskylev/dinner_dash/statuses/e22d8edc3347298c5c58c502e6f950456b261d3b","head":{"label":"kravinskylev:un_authenticated_user_#8","ref":"un_authenticated_user_#8","sha":"e22d8edc3347298c5c58c502e6f950456b261d3b","user":{"login":"kravinskylev","id":11400051,"avatar_url":"https://avatars.githubusercontent.com/u/11400051?v=3","gravatar_id":"","url":"https://api.github.com/users/kravinskylev","html_url":"https://github.com/kravinskylev","followers_url":"https://api.github.com/users/kravinskylev/followers","following_url":"https://api.github.com/users/kravinskylev/following{/other_user}","gists_url":"https://api.github.com/users/kravinskylev/gists{/gist_id}","starred_url":"https://api.github.com/users/kravinskylev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kravinskylev/subscriptions","organizations_url":"https://api.github.com/users/kravinskylev/orgs","repos_url":"https://api.github.com/users/kravinskylev/repos","events_url":"https://api.github.com/users/kravinskylev/events{/privacy}","received_events_url":"https://api.github.com/users/kravinskylev/received_events","type":"User","site_admin":false},"repo":{"id":37474045,"name":"dinner_dash","full_name":"kravinskylev/dinner_dash","owner":{"login":"kravinskylev","id":11400051,"avatar_url":"https://avatars.githubusercontent.com/u/11400051?v=3","gravatar_id":"","url":"https://api.github.com/users/kravinskylev","html_url":"https://github.com/kravinskylev","followers_url":"https://api.github.com/users/kravinskylev/followers","following_url":"https://api.github.com/users/kravinskylev/following{/other_user}","gists_url":"https://api.github.com/users/kravinskylev/gists{/gist_id}","starred_url":"https://api.github.com/users/kravinskylev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kravinskylev/subscriptions","organizations_url":"https://api.github.com/users/kravinskylev/orgs","repos_url":"https://api.github.com/users/kravinskylev/repos","events_url":"https://api.github.com/users/kravinskylev/events{/privacy}","received_events_url":"https://api.github.com/users/kravinskylev/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/kravinskylev/dinner_dash","description":"","fork":false,"url":"https://api.github.com/repos/kravinskylev/dinner_dash","forks_url":"https://api.github.com/repos/kravinskylev/dinner_dash/forks","keys_url":"https://api.github.com/repos/kravinskylev/dinner_dash/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kravinskylev/dinner_dash/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kravinskylev/dinner_dash/teams","hooks_url":"https://api.github.com/repos/kravinskylev/dinner_dash/hooks","issue_events_url":"https://api.github.com/repos/kravinskylev/dinner_dash/issues/events{/number}","events_url":"https://api.github.com/repos/kravinskylev/dinner_dash/events","assignees_url":"https://api.github.com/repos/kravinskylev/dinner_dash/assignees{/user}","branches_url":"https://api.github.com/repos/kravinskylev/dinner_dash/branches{/branch}","tags_url":"https://api.github.com/repos/kravinskylev/dinner_dash/tags","blobs_url":"https://api.github.com/repos/kravinskylev/dinner_dash/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kravinskylev/dinner_dash/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kravinskylev/dinner_dash/git/refs{/sha}","trees_url":"https://api.github.com/repos/kravinskylev/dinner_dash/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kravinskylev/dinner_dash/statuses/{sha}","languages_url":"https://api.github.com/repos/kravinskylev/dinner_dash/languages","stargazers_url":"https://api.github.com/repos/kravinskylev/dinner_dash/stargazers","contributors_url":"https://api.github.com/repos/kravinskylev/dinner_dash/contributors","subscribers_url":"https://api.github.com/repos/kravinskylev/dinner_dash/subscribers","subscription_url":"https://api.github.com/repos/kravinskylev/dinner_dash/subscription","commits_url":"https://api.github.com/repos/kravinskylev/dinner_dash/commits{/sha}","git_commits_url":"https://api.github.com/repos/kravinskylev/dinner_dash/git/commits{/sha}","comments_url":"https://api.github.com/repos/kravinskylev/dinner_dash/comments{/number}","issue_comment_url":"https://api.github.com/repos/kravinskylev/dinner_dash/issues/comments{/number}","contents_url":"https://api.github.com/repos/kravinskylev/dinner_dash/contents/{+path}","compare_url":"https://api.github.com/repos/kravinskylev/dinner_dash/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kravinskylev/dinner_dash/merges","archive_url":"https://api.github.com/repos/kravinskylev/dinner_dash/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kravinskylev/dinner_dash/downloads","issues_url":"https://api.github.com/repos/kravinskylev/dinner_dash/issues{/number}","pulls_url":"https://api.github.com/repos/kravinskylev/dinner_dash/pulls{/number}","milestones_url":"https://api.github.com/repos/kravinskylev/dinner_dash/milestones{/number}","notifications_url":"https://api.github.com/repos/kravinskylev/dinner_dash/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kravinskylev/dinner_dash/labels{/name}","releases_url":"https://api.github.com/repos/kravinskylev/dinner_dash/releases{/id}","created_at":"2015-06-15T15:33:51Z","updated_at":"2015-06-15T15:33:59Z","pushed_at":"2015-06-19T07:16:51Z","git_url":"git://github.com/kravinskylev/dinner_dash.git","ssh_url":"git@github.com:kravinskylev/dinner_dash.git","clone_url":"https://github.com/kravinskylev/dinner_dash.git","svn_url":"https://github.com/kravinskylev/dinner_dash","homepage":null,"size":580,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":39,"forks":0,"open_issues":39,"watchers":0,"default_branch":"master"}},"base":{"label":"kravinskylev:master","ref":"master","sha":"6fd5735b98de8f5df90340b418841d0ff8806703","user":{"login":"kravinskylev","id":11400051,"avatar_url":"https://avatars.githubusercontent.com/u/11400051?v=3","gravatar_id":"","url":"https://api.github.com/users/kravinskylev","html_url":"https://github.com/kravinskylev","followers_url":"https://api.github.com/users/kravinskylev/followers","following_url":"https://api.github.com/users/kravinskylev/following{/other_user}","gists_url":"https://api.github.com/users/kravinskylev/gists{/gist_id}","starred_url":"https://api.github.com/users/kravinskylev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kravinskylev/subscriptions","organizations_url":"https://api.github.com/users/kravinskylev/orgs","repos_url":"https://api.github.com/users/kravinskylev/repos","events_url":"https://api.github.com/users/kravinskylev/events{/privacy}","received_events_url":"https://api.github.com/users/kravinskylev/received_events","type":"User","site_admin":false},"repo":{"id":37474045,"name":"dinner_dash","full_name":"kravinskylev/dinner_dash","owner":{"login":"kravinskylev","id":11400051,"avatar_url":"https://avatars.githubusercontent.com/u/11400051?v=3","gravatar_id":"","url":"https://api.github.com/users/kravinskylev","html_url":"https://github.com/kravinskylev","followers_url":"https://api.github.com/users/kravinskylev/followers","following_url":"https://api.github.com/users/kravinskylev/following{/other_user}","gists_url":"https://api.github.com/users/kravinskylev/gists{/gist_id}","starred_url":"https://api.github.com/users/kravinskylev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kravinskylev/subscriptions","organizations_url":"https://api.github.com/users/kravinskylev/orgs","repos_url":"https://api.github.com/users/kravinskylev/repos","events_url":"https://api.github.com/users/kravinskylev/events{/privacy}","received_events_url":"https://api.github.com/users/kravinskylev/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/kravinskylev/dinner_dash","description":"","fork":false,"url":"https://api.github.com/repos/kravinskylev/dinner_dash","forks_url":"https://api.github.com/repos/kravinskylev/dinner_dash/forks","keys_url":"https://api.github.com/repos/kravinskylev/dinner_dash/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kravinskylev/dinner_dash/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kravinskylev/dinner_dash/teams","hooks_url":"https://api.github.com/repos/kravinskylev/dinner_dash/hooks","issue_events_url":"https://api.github.com/repos/kravinskylev/dinner_dash/issues/events{/number}","events_url":"https://api.github.com/repos/kravinskylev/dinner_dash/events","assignees_url":"https://api.github.com/repos/kravinskylev/dinner_dash/assignees{/user}","branches_url":"https://api.github.com/repos/kravinskylev/dinner_dash/branches{/branch}","tags_url":"https://api.github.com/repos/kravinskylev/dinner_dash/tags","blobs_url":"https://api.github.com/repos/kravinskylev/dinner_dash/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kravinskylev/dinner_dash/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kravinskylev/dinner_dash/git/refs{/sha}","trees_url":"https://api.github.com/repos/kravinskylev/dinner_dash/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kravinskylev/dinner_dash/statuses/{sha}","languages_url":"https://api.github.com/repos/kravinskylev/dinner_dash/languages","stargazers_url":"https://api.github.com/repos/kravinskylev/dinner_dash/stargazers","contributors_url":"https://api.github.com/repos/kravinskylev/dinner_dash/contributors","subscribers_url":"https://api.github.com/repos/kravinskylev/dinner_dash/subscribers","subscription_url":"https://api.github.com/repos/kravinskylev/dinner_dash/subscription","commits_url":"https://api.github.com/repos/kravinskylev/dinner_dash/commits{/sha}","git_commits_url":"https://api.github.com/repos/kravinskylev/dinner_dash/git/commits{/sha}","comments_url":"https://api.github.com/repos/kravinskylev/dinner_dash/comments{/number}","issue_comment_url":"https://api.github.com/repos/kravinskylev/dinner_dash/issues/comments{/number}","contents_url":"https://api.github.com/repos/kravinskylev/dinner_dash/contents/{+path}","compare_url":"https://api.github.com/repos/kravinskylev/dinner_dash/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kravinskylev/dinner_dash/merges","archive_url":"https://api.github.com/repos/kravinskylev/dinner_dash/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kravinskylev/dinner_dash/downloads","issues_url":"https://api.github.com/repos/kravinskylev/dinner_dash/issues{/number}","pulls_url":"https://api.github.com/repos/kravinskylev/dinner_dash/pulls{/number}","milestones_url":"https://api.github.com/repos/kravinskylev/dinner_dash/milestones{/number}","notifications_url":"https://api.github.com/repos/kravinskylev/dinner_dash/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kravinskylev/dinner_dash/labels{/name}","releases_url":"https://api.github.com/repos/kravinskylev/dinner_dash/releases{/id}","created_at":"2015-06-15T15:33:51Z","updated_at":"2015-06-15T15:33:59Z","pushed_at":"2015-06-19T07:16:51Z","git_url":"git://github.com/kravinskylev/dinner_dash.git","ssh_url":"git@github.com:kravinskylev/dinner_dash.git","clone_url":"https://github.com/kravinskylev/dinner_dash.git","svn_url":"https://github.com/kravinskylev/dinner_dash","homepage":null,"size":580,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":39,"forks":0,"open_issues":39,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/kravinskylev/dinner_dash/pulls/76"},"html":{"href":"https://github.com/kravinskylev/dinner_dash/pull/76"},"issue":{"href":"https://api.github.com/repos/kravinskylev/dinner_dash/issues/76"},"comments":{"href":"https://api.github.com/repos/kravinskylev/dinner_dash/issues/76/comments"},"review_comments":{"href":"https://api.github.com/repos/kravinskylev/dinner_dash/pulls/76/comments"},"review_comment":{"href":"https://api.github.com/repos/kravinskylev/dinner_dash/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/kravinskylev/dinner_dash/pulls/76/commits"},"statuses":{"href":"https://api.github.com/repos/kravinskylev/dinner_dash/statuses/e22d8edc3347298c5c58c502e6f950456b261d3b"}}}}