{"action":"created","comment":{"url":"https://api.github.com/repos/michael-reeves/redrum_nursery/pulls/comments/36487972","id":36487972,"diff_hunk":"@@ -0,0 +1,53 @@\n+require \"rails_helper\"\n+\n+RSpec.describe User, type: :model do\n+  let(:user) do\n+    User.new(first_name: \"Jane\",\n+             last_name:  \"Doe\",\n+             email:      \"jane@doe.com\",\n+             password:   \"password\")\n+  end\n+\n+  it \"creates a user\" do\n+    user.save\n+\n+    expect(User.all.first.first_name).to eq(\"Jane\")\n+    expect(User.all.first.last_name).to eq(\"Doe\")\n+    expect(User.all.first.email).to eq(\"jane@doe.com\")\n+    expect(User.all.first.password_digest).to be_a(String)\n+  end\n+\n+  it \"has a first name\" do\n+    user.first_name = nil\n+\n+    expect(user).to be_invalid\n+  end\n+\n+  it \"has a last name\" do\n+    user.last_name = nil\n+\n+    expect(user).to be_invalid\n+  end\n+\n+  it \"has a email\" do\n+    user.email = nil\n+\n+    expect(user).to be_invalid\n+  end\n+\n+  it \"has a password\" do\n+    user.password = nil\n+\n+    expect(user).to be_invalid\n+  end\n+\n+  it \"has a unique email\" do\n+    user.save\n+    user_2 = User.new(first_name: \"John\",\n+                last_name:  \"Doh\",","path":"spec/models/user_spec.rb","position":47,"original_position":47,"commit_id":"74fe7a549628ff5c0faf4060904f88690a69bcfa","original_commit_id":"74fe7a549628ff5c0faf4060904f88690a69bcfa","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.<br>Unnecessary spacing detected.","created_at":"2015-08-07T03:10:50Z","updated_at":"2015-08-07T03:10:50Z","html_url":"https://github.com/michael-reeves/redrum_nursery/pull/34#discussion_r36487972","pull_request_url":"https://api.github.com/repos/michael-reeves/redrum_nursery/pulls/34","_links":{"self":{"href":"https://api.github.com/repos/michael-reeves/redrum_nursery/pulls/comments/36487972"},"html":{"href":"https://github.com/michael-reeves/redrum_nursery/pull/34#discussion_r36487972"},"pull_request":{"href":"https://api.github.com/repos/michael-reeves/redrum_nursery/pulls/34"}}},"pull_request":{"url":"https://api.github.com/repos/michael-reeves/redrum_nursery/pulls/34","id":41846482,"html_url":"https://github.com/michael-reeves/redrum_nursery/pull/34","diff_url":"https://github.com/michael-reeves/redrum_nursery/pull/34.diff","patch_url":"https://github.com/michael-reeves/redrum_nursery/pull/34.patch","issue_url":"https://api.github.com/repos/michael-reeves/redrum_nursery/issues/34","number":34,"state":"open","locked":false,"title":"WIP add account creation feature","user":{"login":"mdorrance","id":3131114,"avatar_url":"https://avatars.githubusercontent.com/u/3131114?v=3","gravatar_id":"","url":"https://api.github.com/users/mdorrance","html_url":"https://github.com/mdorrance","followers_url":"https://api.github.com/users/mdorrance/followers","following_url":"https://api.github.com/users/mdorrance/following{/other_user}","gists_url":"https://api.github.com/users/mdorrance/gists{/gist_id}","starred_url":"https://api.github.com/users/mdorrance/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mdorrance/subscriptions","organizations_url":"https://api.github.com/users/mdorrance/orgs","repos_url":"https://api.github.com/users/mdorrance/repos","events_url":"https://api.github.com/users/mdorrance/events{/privacy}","received_events_url":"https://api.github.com/users/mdorrance/received_events","type":"User","site_admin":false},"body":"Initial commit for WIP","created_at":"2015-08-06T23:31:07Z","updated_at":"2015-08-07T03:10:52Z","closed_at":null,"merged_at":null,"merge_commit_sha":"7dfacd4274412a039f267f97919d3e43bd4b89fd","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/michael-reeves/redrum_nursery/pulls/34/commits","review_comments_url":"https://api.github.com/repos/michael-reeves/redrum_nursery/pulls/34/comments","review_comment_url":"https://api.github.com/repos/michael-reeves/redrum_nursery/pulls/comments{/number}","comments_url":"https://api.github.com/repos/michael-reeves/redrum_nursery/issues/34/comments","statuses_url":"https://api.github.com/repos/michael-reeves/redrum_nursery/statuses/74fe7a549628ff5c0faf4060904f88690a69bcfa","head":{"label":"michael-reeves:14_authenticate_user","ref":"14_authenticate_user","sha":"74fe7a549628ff5c0faf4060904f88690a69bcfa","user":{"login":"michael-reeves","id":7769973,"avatar_url":"https://avatars.githubusercontent.com/u/7769973?v=3","gravatar_id":"","url":"https://api.github.com/users/michael-reeves","html_url":"https://github.com/michael-reeves","followers_url":"https://api.github.com/users/michael-reeves/followers","following_url":"https://api.github.com/users/michael-reeves/following{/other_user}","gists_url":"https://api.github.com/users/michael-reeves/gists{/gist_id}","starred_url":"https://api.github.com/users/michael-reeves/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/michael-reeves/subscriptions","organizations_url":"https://api.github.com/users/michael-reeves/orgs","repos_url":"https://api.github.com/users/michael-reeves/repos","events_url":"https://api.github.com/users/michael-reeves/events{/privacy}","received_events_url":"https://api.github.com/users/michael-reeves/received_events","type":"User","site_admin":false},"repo":{"id":40136626,"name":"redrum_nursery","full_name":"michael-reeves/redrum_nursery","owner":{"login":"michael-reeves","id":7769973,"avatar_url":"https://avatars.githubusercontent.com/u/7769973?v=3","gravatar_id":"","url":"https://api.github.com/users/michael-reeves","html_url":"https://github.com/michael-reeves","followers_url":"https://api.github.com/users/michael-reeves/followers","following_url":"https://api.github.com/users/michael-reeves/following{/other_user}","gists_url":"https://api.github.com/users/michael-reeves/gists{/gist_id}","starred_url":"https://api.github.com/users/michael-reeves/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/michael-reeves/subscriptions","organizations_url":"https://api.github.com/users/michael-reeves/orgs","repos_url":"https://api.github.com/users/michael-reeves/repos","events_url":"https://api.github.com/users/michael-reeves/events{/privacy}","received_events_url":"https://api.github.com/users/michael-reeves/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/michael-reeves/redrum_nursery","description":"Carnivorous Plant Store","fork":false,"url":"https://api.github.com/repos/michael-reeves/redrum_nursery","forks_url":"https://api.github.com/repos/michael-reeves/redrum_nursery/forks","keys_url":"https://api.github.com/repos/michael-reeves/redrum_nursery/keys{/key_id}","collaborators_url":"https://api.github.com/repos/michael-reeves/redrum_nursery/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/michael-reeves/redrum_nursery/teams","hooks_url":"https://api.github.com/repos/michael-reeves/redrum_nursery/hooks","issue_events_url":"https://api.github.com/repos/michael-reeves/redrum_nursery/issues/events{/number}","events_url":"https://api.github.com/repos/michael-reeves/redrum_nursery/events","assignees_url":"https://api.github.com/repos/michael-reeves/redrum_nursery/assignees{/user}","branches_url":"https://api.github.com/repos/michael-reeves/redrum_nursery/branches{/branch}","tags_url":"https://api.github.com/repos/michael-reeves/redrum_nursery/tags","blobs_url":"https://api.github.com/repos/michael-reeves/redrum_nursery/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/michael-reeves/redrum_nursery/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/michael-reeves/redrum_nursery/git/refs{/sha}","trees_url":"https://api.github.com/repos/michael-reeves/redrum_nursery/git/trees{/sha}","statuses_url":"https://api.github.com/repos/michael-reeves/redrum_nursery/statuses/{sha}","languages_url":"https://api.github.com/repos/michael-reeves/redrum_nursery/languages","stargazers_url":"https://api.github.com/repos/michael-reeves/redrum_nursery/stargazers","contributors_url":"https://api.github.com/repos/michael-reeves/redrum_nursery/contributors","subscribers_url":"https://api.github.com/repos/michael-reeves/redrum_nursery/subscribers","subscription_url":"https://api.github.com/repos/michael-reeves/redrum_nursery/subscription","commits_url":"https://api.github.com/repos/michael-reeves/redrum_nursery/commits{/sha}","git_commits_url":"https://api.github.com/repos/michael-reeves/redrum_nursery/git/commits{/sha}","comments_url":"https://api.github.com/repos/michael-reeves/redrum_nursery/comments{/number}","issue_comment_url":"https://api.github.com/repos/michael-reeves/redrum_nursery/issues/comments{/number}","contents_url":"https://api.github.com/repos/michael-reeves/redrum_nursery/contents/{+path}","compare_url":"https://api.github.com/repos/michael-reeves/redrum_nursery/compare/{base}...{head}","merges_url":"https://api.github.com/repos/michael-reeves/redrum_nursery/merges","archive_url":"https://api.github.com/repos/michael-reeves/redrum_nursery/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/michael-reeves/redrum_nursery/downloads","issues_url":"https://api.github.com/repos/michael-reeves/redrum_nursery/issues{/number}","pulls_url":"https://api.github.com/repos/michael-reeves/redrum_nursery/pulls{/number}","milestones_url":"https://api.github.com/repos/michael-reeves/redrum_nursery/milestones{/number}","notifications_url":"https://api.github.com/repos/michael-reeves/redrum_nursery/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/michael-reeves/redrum_nursery/labels{/name}","releases_url":"https://api.github.com/repos/michael-reeves/redrum_nursery/releases{/id}","created_at":"2015-08-03T16:50:11Z","updated_at":"2015-08-06T19:54:54Z","pushed_at":"2015-08-07T03:09:31Z","git_url":"git://github.com/michael-reeves/redrum_nursery.git","ssh_url":"git@github.com:michael-reeves/redrum_nursery.git","clone_url":"https://github.com/michael-reeves/redrum_nursery.git","svn_url":"https://github.com/michael-reeves/redrum_nursery","homepage":null,"size":6199,"stargazers_count":1,"watchers_count":1,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":10,"forks":1,"open_issues":10,"watchers":1,"default_branch":"master"}},"base":{"label":"michael-reeves:master","ref":"master","sha":"5325e205046ece5ad45d031f558981c632dc3497","user":{"login":"michael-reeves","id":7769973,"avatar_url":"https://avatars.githubusercontent.com/u/7769973?v=3","gravatar_id":"","url":"https://api.github.com/users/michael-reeves","html_url":"https://github.com/michael-reeves","followers_url":"https://api.github.com/users/michael-reeves/followers","following_url":"https://api.github.com/users/michael-reeves/following{/other_user}","gists_url":"https://api.github.com/users/michael-reeves/gists{/gist_id}","starred_url":"https://api.github.com/users/michael-reeves/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/michael-reeves/subscriptions","organizations_url":"https://api.github.com/users/michael-reeves/orgs","repos_url":"https://api.github.com/users/michael-reeves/repos","events_url":"https://api.github.com/users/michael-reeves/events{/privacy}","received_events_url":"https://api.github.com/users/michael-reeves/received_events","type":"User","site_admin":false},"repo":{"id":40136626,"name":"redrum_nursery","full_name":"michael-reeves/redrum_nursery","owner":{"login":"michael-reeves","id":7769973,"avatar_url":"https://avatars.githubusercontent.com/u/7769973?v=3","gravatar_id":"","url":"https://api.github.com/users/michael-reeves","html_url":"https://github.com/michael-reeves","followers_url":"https://api.github.com/users/michael-reeves/followers","following_url":"https://api.github.com/users/michael-reeves/following{/other_user}","gists_url":"https://api.github.com/users/michael-reeves/gists{/gist_id}","starred_url":"https://api.github.com/users/michael-reeves/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/michael-reeves/subscriptions","organizations_url":"https://api.github.com/users/michael-reeves/orgs","repos_url":"https://api.github.com/users/michael-reeves/repos","events_url":"https://api.github.com/users/michael-reeves/events{/privacy}","received_events_url":"https://api.github.com/users/michael-reeves/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/michael-reeves/redrum_nursery","description":"Carnivorous Plant Store","fork":false,"url":"https://api.github.com/repos/michael-reeves/redrum_nursery","forks_url":"https://api.github.com/repos/michael-reeves/redrum_nursery/forks","keys_url":"https://api.github.com/repos/michael-reeves/redrum_nursery/keys{/key_id}","collaborators_url":"https://api.github.com/repos/michael-reeves/redrum_nursery/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/michael-reeves/redrum_nursery/teams","hooks_url":"https://api.github.com/repos/michael-reeves/redrum_nursery/hooks","issue_events_url":"https://api.github.com/repos/michael-reeves/redrum_nursery/issues/events{/number}","events_url":"https://api.github.com/repos/michael-reeves/redrum_nursery/events","assignees_url":"https://api.github.com/repos/michael-reeves/redrum_nursery/assignees{/user}","branches_url":"https://api.github.com/repos/michael-reeves/redrum_nursery/branches{/branch}","tags_url":"https://api.github.com/repos/michael-reeves/redrum_nursery/tags","blobs_url":"https://api.github.com/repos/michael-reeves/redrum_nursery/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/michael-reeves/redrum_nursery/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/michael-reeves/redrum_nursery/git/refs{/sha}","trees_url":"https://api.github.com/repos/michael-reeves/redrum_nursery/git/trees{/sha}","statuses_url":"https://api.github.com/repos/michael-reeves/redrum_nursery/statuses/{sha}","languages_url":"https://api.github.com/repos/michael-reeves/redrum_nursery/languages","stargazers_url":"https://api.github.com/repos/michael-reeves/redrum_nursery/stargazers","contributors_url":"https://api.github.com/repos/michael-reeves/redrum_nursery/contributors","subscribers_url":"https://api.github.com/repos/michael-reeves/redrum_nursery/subscribers","subscription_url":"https://api.github.com/repos/michael-reeves/redrum_nursery/subscription","commits_url":"https://api.github.com/repos/michael-reeves/redrum_nursery/commits{/sha}","git_commits_url":"https://api.github.com/repos/michael-reeves/redrum_nursery/git/commits{/sha}","comments_url":"https://api.github.com/repos/michael-reeves/redrum_nursery/comments{/number}","issue_comment_url":"https://api.github.com/repos/michael-reeves/redrum_nursery/issues/comments{/number}","contents_url":"https://api.github.com/repos/michael-reeves/redrum_nursery/contents/{+path}","compare_url":"https://api.github.com/repos/michael-reeves/redrum_nursery/compare/{base}...{head}","merges_url":"https://api.github.com/repos/michael-reeves/redrum_nursery/merges","archive_url":"https://api.github.com/repos/michael-reeves/redrum_nursery/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/michael-reeves/redrum_nursery/downloads","issues_url":"https://api.github.com/repos/michael-reeves/redrum_nursery/issues{/number}","pulls_url":"https://api.github.com/repos/michael-reeves/redrum_nursery/pulls{/number}","milestones_url":"https://api.github.com/repos/michael-reeves/redrum_nursery/milestones{/number}","notifications_url":"https://api.github.com/repos/michael-reeves/redrum_nursery/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/michael-reeves/redrum_nursery/labels{/name}","releases_url":"https://api.github.com/repos/michael-reeves/redrum_nursery/releases{/id}","created_at":"2015-08-03T16:50:11Z","updated_at":"2015-08-06T19:54:54Z","pushed_at":"2015-08-07T03:09:31Z","git_url":"git://github.com/michael-reeves/redrum_nursery.git","ssh_url":"git@github.com:michael-reeves/redrum_nursery.git","clone_url":"https://github.com/michael-reeves/redrum_nursery.git","svn_url":"https://github.com/michael-reeves/redrum_nursery","homepage":null,"size":6199,"stargazers_count":1,"watchers_count":1,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":10,"forks":1,"open_issues":10,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/michael-reeves/redrum_nursery/pulls/34"},"html":{"href":"https://github.com/michael-reeves/redrum_nursery/pull/34"},"issue":{"href":"https://api.github.com/repos/michael-reeves/redrum_nursery/issues/34"},"comments":{"href":"https://api.github.com/repos/michael-reeves/redrum_nursery/issues/34/comments"},"review_comments":{"href":"https://api.github.com/repos/michael-reeves/redrum_nursery/pulls/34/comments"},"review_comment":{"href":"https://api.github.com/repos/michael-reeves/redrum_nursery/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/michael-reeves/redrum_nursery/pulls/34/commits"},"statuses":{"href":"https://api.github.com/repos/michael-reeves/redrum_nursery/statuses/74fe7a549628ff5c0faf4060904f88690a69bcfa"}}}}