{"action":"created","comment":{"url":"https://api.github.com/repos/jwperry/the_pivot/pulls/comments/52532617","id":52532617,"diff_hunk":"@@ -0,0 +1,105 @@\n+require \"test_helper\"\n+\n+class GuestCreatesAccountThroughLinkedInTest < ActionDispatch::IntegrationTest\n+  test \"guest creates account through linked in\" do\n+    User::UsersController.any_instance.stubs(:auth_hash).returns(sample_auth_hash)\n+\n+    visit linkedin_path\n+\n+    assert page.has_content?(\"Create a New Account\")\n+    assert_equal \"John\", find(\"#user_first_name\").value\n+    assert_equal \"Doe\", find(\"#user_last_name\").value\n+    assert_equal \"john@doe.com\", find(\"#user_email_address\").value\n+    assert_equal \"Greater Boston Area\", find(\"#user_city\").value\n+    assert_equal \"Senior Developer, Hammertech\", find(\"#user_bio\").value\n+    assert_equal \"http://m.c.lnkd.licdn.com/mpr/mprx/0_aBcD...\", find(\"#user_image_path\").value\n+\n+    fill_in \"Street address\", with: \"123 Maple Drive\"\n+    select \"Colorado\", from: \"user_state\"\n+    fill_in \"Zipcode\", with: \"80231\"\n+    fill_in \"Username\", with: \"username\"\n+    fill_in \"Password\", with: \"password\"\n+    fill_in \"Password confirmation\", with: \"password\"\n+    select \"contractor\", from: \"user_role\"\n+    fill_in \"Bio\", with: \"In west Philadelphia born and raised\"\n+    click_on \"Create User\"\n+\n+    user = User.last\n+\n+    refute user.authorizations.empty?\n+\n+  end\n+\n+  test \"guest logs in through linked in\" do\n+    User::UsersController.any_instance.stubs(:auth_hash).returns(sample_auth_hash)","path":"test/integration/guest_creates_account_through_linked_in_test.rb","position":34,"original_position":34,"commit_id":"3464e6b5c6b244319546fe60eac11489f4d292a4","original_commit_id":"3464e6b5c6b244319546fe60eac11489f4d292a4","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":"Line is too long. [82/80]","created_at":"2016-02-10T21:58:00Z","updated_at":"2016-02-10T21:58:00Z","html_url":"https://github.com/jwperry/the_pivot/pull/136#discussion_r52532617","pull_request_url":"https://api.github.com/repos/jwperry/the_pivot/pulls/136","_links":{"self":{"href":"https://api.github.com/repos/jwperry/the_pivot/pulls/comments/52532617"},"html":{"href":"https://github.com/jwperry/the_pivot/pull/136#discussion_r52532617"},"pull_request":{"href":"https://api.github.com/repos/jwperry/the_pivot/pulls/136"}}},"pull_request":{"url":"https://api.github.com/repos/jwperry/the_pivot/pulls/136","id":58959319,"html_url":"https://github.com/jwperry/the_pivot/pull/136","diff_url":"https://github.com/jwperry/the_pivot/pull/136.diff","patch_url":"https://github.com/jwperry/the_pivot/pull/136.patch","issue_url":"https://api.github.com/repos/jwperry/the_pivot/issues/136","number":136,"state":"open","locked":false,"title":"Closes #125 linked in oath","user":{"login":"danjwinter","id":13614117,"avatar_url":"https://avatars.githubusercontent.com/u/13614117?v=3","gravatar_id":"","url":"https://api.github.com/users/danjwinter","html_url":"https://github.com/danjwinter","followers_url":"https://api.github.com/users/danjwinter/followers","following_url":"https://api.github.com/users/danjwinter/following{/other_user}","gists_url":"https://api.github.com/users/danjwinter/gists{/gist_id}","starred_url":"https://api.github.com/users/danjwinter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danjwinter/subscriptions","organizations_url":"https://api.github.com/users/danjwinter/orgs","repos_url":"https://api.github.com/users/danjwinter/repos","events_url":"https://api.github.com/users/danjwinter/events{/privacy}","received_events_url":"https://api.github.com/users/danjwinter/received_events","type":"User","site_admin":false},"body":"Add OAuth for LinkedIn during account creation. This allows the user to sign in to their Linked In account and pull some of that information in to their Freelancer profile creation. They can then finish filling out our new user form and an authorization will be saved for that user. When they go to log in again, they can click on the Log In through LinkedIn link and if authenticated by linked in, will be directed to their dashboard as normal.","created_at":"2016-02-10T21:50:02Z","updated_at":"2016-02-10T21:58:01Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/jwperry/the_pivot/pulls/136/commits","review_comments_url":"https://api.github.com/repos/jwperry/the_pivot/pulls/136/comments","review_comment_url":"https://api.github.com/repos/jwperry/the_pivot/pulls/comments{/number}","comments_url":"https://api.github.com/repos/jwperry/the_pivot/issues/136/comments","statuses_url":"https://api.github.com/repos/jwperry/the_pivot/statuses/3464e6b5c6b244319546fe60eac11489f4d292a4","head":{"label":"jwperry:125_linked_in_oath2","ref":"125_linked_in_oath2","sha":"3464e6b5c6b244319546fe60eac11489f4d292a4","user":{"login":"jwperry","id":13172425,"avatar_url":"https://avatars.githubusercontent.com/u/13172425?v=3","gravatar_id":"","url":"https://api.github.com/users/jwperry","html_url":"https://github.com/jwperry","followers_url":"https://api.github.com/users/jwperry/followers","following_url":"https://api.github.com/users/jwperry/following{/other_user}","gists_url":"https://api.github.com/users/jwperry/gists{/gist_id}","starred_url":"https://api.github.com/users/jwperry/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jwperry/subscriptions","organizations_url":"https://api.github.com/users/jwperry/orgs","repos_url":"https://api.github.com/users/jwperry/repos","events_url":"https://api.github.com/users/jwperry/events{/privacy}","received_events_url":"https://api.github.com/users/jwperry/received_events","type":"User","site_admin":false},"repo":{"id":50874809,"name":"the_pivot","full_name":"jwperry/the_pivot","owner":{"login":"jwperry","id":13172425,"avatar_url":"https://avatars.githubusercontent.com/u/13172425?v=3","gravatar_id":"","url":"https://api.github.com/users/jwperry","html_url":"https://github.com/jwperry","followers_url":"https://api.github.com/users/jwperry/followers","following_url":"https://api.github.com/users/jwperry/following{/other_user}","gists_url":"https://api.github.com/users/jwperry/gists{/gist_id}","starred_url":"https://api.github.com/users/jwperry/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jwperry/subscriptions","organizations_url":"https://api.github.com/users/jwperry/orgs","repos_url":"https://api.github.com/users/jwperry/repos","events_url":"https://api.github.com/users/jwperry/events{/privacy}","received_events_url":"https://api.github.com/users/jwperry/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jwperry/the_pivot","description":"Pivoting Little Shop Project (\"Rough Sketch\")","fork":false,"url":"https://api.github.com/repos/jwperry/the_pivot","forks_url":"https://api.github.com/repos/jwperry/the_pivot/forks","keys_url":"https://api.github.com/repos/jwperry/the_pivot/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jwperry/the_pivot/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jwperry/the_pivot/teams","hooks_url":"https://api.github.com/repos/jwperry/the_pivot/hooks","issue_events_url":"https://api.github.com/repos/jwperry/the_pivot/issues/events{/number}","events_url":"https://api.github.com/repos/jwperry/the_pivot/events","assignees_url":"https://api.github.com/repos/jwperry/the_pivot/assignees{/user}","branches_url":"https://api.github.com/repos/jwperry/the_pivot/branches{/branch}","tags_url":"https://api.github.com/repos/jwperry/the_pivot/tags","blobs_url":"https://api.github.com/repos/jwperry/the_pivot/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jwperry/the_pivot/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jwperry/the_pivot/git/refs{/sha}","trees_url":"https://api.github.com/repos/jwperry/the_pivot/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jwperry/the_pivot/statuses/{sha}","languages_url":"https://api.github.com/repos/jwperry/the_pivot/languages","stargazers_url":"https://api.github.com/repos/jwperry/the_pivot/stargazers","contributors_url":"https://api.github.com/repos/jwperry/the_pivot/contributors","subscribers_url":"https://api.github.com/repos/jwperry/the_pivot/subscribers","subscription_url":"https://api.github.com/repos/jwperry/the_pivot/subscription","commits_url":"https://api.github.com/repos/jwperry/the_pivot/commits{/sha}","git_commits_url":"https://api.github.com/repos/jwperry/the_pivot/git/commits{/sha}","comments_url":"https://api.github.com/repos/jwperry/the_pivot/comments{/number}","issue_comment_url":"https://api.github.com/repos/jwperry/the_pivot/issues/comments{/number}","contents_url":"https://api.github.com/repos/jwperry/the_pivot/contents/{+path}","compare_url":"https://api.github.com/repos/jwperry/the_pivot/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jwperry/the_pivot/merges","archive_url":"https://api.github.com/repos/jwperry/the_pivot/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jwperry/the_pivot/downloads","issues_url":"https://api.github.com/repos/jwperry/the_pivot/issues{/number}","pulls_url":"https://api.github.com/repos/jwperry/the_pivot/pulls{/number}","milestones_url":"https://api.github.com/repos/jwperry/the_pivot/milestones{/number}","notifications_url":"https://api.github.com/repos/jwperry/the_pivot/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jwperry/the_pivot/labels{/name}","releases_url":"https://api.github.com/repos/jwperry/the_pivot/releases{/id}","deployments_url":"https://api.github.com/repos/jwperry/the_pivot/deployments","created_at":"2016-02-01T22:05:52Z","updated_at":"2016-02-03T18:41:58Z","pushed_at":"2016-02-10T21:57:52Z","git_url":"git://github.com/jwperry/the_pivot.git","ssh_url":"git@github.com:jwperry/the_pivot.git","clone_url":"https://github.com/jwperry/the_pivot.git","svn_url":"https://github.com/jwperry/the_pivot","homepage":null,"size":6759,"stargazers_count":1,"watchers_count":1,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":11,"forks":0,"open_issues":11,"watchers":1,"default_branch":"master"}},"base":{"label":"jwperry:master","ref":"master","sha":"89951073f84f5ed47e922dc2e7c464529d67e15d","user":{"login":"jwperry","id":13172425,"avatar_url":"https://avatars.githubusercontent.com/u/13172425?v=3","gravatar_id":"","url":"https://api.github.com/users/jwperry","html_url":"https://github.com/jwperry","followers_url":"https://api.github.com/users/jwperry/followers","following_url":"https://api.github.com/users/jwperry/following{/other_user}","gists_url":"https://api.github.com/users/jwperry/gists{/gist_id}","starred_url":"https://api.github.com/users/jwperry/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jwperry/subscriptions","organizations_url":"https://api.github.com/users/jwperry/orgs","repos_url":"https://api.github.com/users/jwperry/repos","events_url":"https://api.github.com/users/jwperry/events{/privacy}","received_events_url":"https://api.github.com/users/jwperry/received_events","type":"User","site_admin":false},"repo":{"id":50874809,"name":"the_pivot","full_name":"jwperry/the_pivot","owner":{"login":"jwperry","id":13172425,"avatar_url":"https://avatars.githubusercontent.com/u/13172425?v=3","gravatar_id":"","url":"https://api.github.com/users/jwperry","html_url":"https://github.com/jwperry","followers_url":"https://api.github.com/users/jwperry/followers","following_url":"https://api.github.com/users/jwperry/following{/other_user}","gists_url":"https://api.github.com/users/jwperry/gists{/gist_id}","starred_url":"https://api.github.com/users/jwperry/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jwperry/subscriptions","organizations_url":"https://api.github.com/users/jwperry/orgs","repos_url":"https://api.github.com/users/jwperry/repos","events_url":"https://api.github.com/users/jwperry/events{/privacy}","received_events_url":"https://api.github.com/users/jwperry/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jwperry/the_pivot","description":"Pivoting Little Shop Project (\"Rough Sketch\")","fork":false,"url":"https://api.github.com/repos/jwperry/the_pivot","forks_url":"https://api.github.com/repos/jwperry/the_pivot/forks","keys_url":"https://api.github.com/repos/jwperry/the_pivot/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jwperry/the_pivot/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jwperry/the_pivot/teams","hooks_url":"https://api.github.com/repos/jwperry/the_pivot/hooks","issue_events_url":"https://api.github.com/repos/jwperry/the_pivot/issues/events{/number}","events_url":"https://api.github.com/repos/jwperry/the_pivot/events","assignees_url":"https://api.github.com/repos/jwperry/the_pivot/assignees{/user}","branches_url":"https://api.github.com/repos/jwperry/the_pivot/branches{/branch}","tags_url":"https://api.github.com/repos/jwperry/the_pivot/tags","blobs_url":"https://api.github.com/repos/jwperry/the_pivot/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jwperry/the_pivot/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jwperry/the_pivot/git/refs{/sha}","trees_url":"https://api.github.com/repos/jwperry/the_pivot/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jwperry/the_pivot/statuses/{sha}","languages_url":"https://api.github.com/repos/jwperry/the_pivot/languages","stargazers_url":"https://api.github.com/repos/jwperry/the_pivot/stargazers","contributors_url":"https://api.github.com/repos/jwperry/the_pivot/contributors","subscribers_url":"https://api.github.com/repos/jwperry/the_pivot/subscribers","subscription_url":"https://api.github.com/repos/jwperry/the_pivot/subscription","commits_url":"https://api.github.com/repos/jwperry/the_pivot/commits{/sha}","git_commits_url":"https://api.github.com/repos/jwperry/the_pivot/git/commits{/sha}","comments_url":"https://api.github.com/repos/jwperry/the_pivot/comments{/number}","issue_comment_url":"https://api.github.com/repos/jwperry/the_pivot/issues/comments{/number}","contents_url":"https://api.github.com/repos/jwperry/the_pivot/contents/{+path}","compare_url":"https://api.github.com/repos/jwperry/the_pivot/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jwperry/the_pivot/merges","archive_url":"https://api.github.com/repos/jwperry/the_pivot/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jwperry/the_pivot/downloads","issues_url":"https://api.github.com/repos/jwperry/the_pivot/issues{/number}","pulls_url":"https://api.github.com/repos/jwperry/the_pivot/pulls{/number}","milestones_url":"https://api.github.com/repos/jwperry/the_pivot/milestones{/number}","notifications_url":"https://api.github.com/repos/jwperry/the_pivot/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jwperry/the_pivot/labels{/name}","releases_url":"https://api.github.com/repos/jwperry/the_pivot/releases{/id}","deployments_url":"https://api.github.com/repos/jwperry/the_pivot/deployments","created_at":"2016-02-01T22:05:52Z","updated_at":"2016-02-03T18:41:58Z","pushed_at":"2016-02-10T21:57:52Z","git_url":"git://github.com/jwperry/the_pivot.git","ssh_url":"git@github.com:jwperry/the_pivot.git","clone_url":"https://github.com/jwperry/the_pivot.git","svn_url":"https://github.com/jwperry/the_pivot","homepage":null,"size":6759,"stargazers_count":1,"watchers_count":1,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":11,"forks":0,"open_issues":11,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/jwperry/the_pivot/pulls/136"},"html":{"href":"https://github.com/jwperry/the_pivot/pull/136"},"issue":{"href":"https://api.github.com/repos/jwperry/the_pivot/issues/136"},"comments":{"href":"https://api.github.com/repos/jwperry/the_pivot/issues/136/comments"},"review_comments":{"href":"https://api.github.com/repos/jwperry/the_pivot/pulls/136/comments"},"review_comment":{"href":"https://api.github.com/repos/jwperry/the_pivot/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/jwperry/the_pivot/pulls/136/commits"},"statuses":{"href":"https://api.github.com/repos/jwperry/the_pivot/statuses/3464e6b5c6b244319546fe60eac11489f4d292a4"}}}}