{"action":"created","comment":{"url":"https://api.github.com/repos/ExCaelum/desk-nomad/pulls/comments/66878022","id":66878022,"diff_hunk":"@@ -7,52 +7,31 @@\n     user_two_order = user_two.orders.new(status: \"ordered\")\n     user_two_order.save\n \n-    visit login_path\n-\n-    click_on \"Login\"\n-    fill_in \"Username\", with: \"turing123\"\n-    fill_in \"Password\", with: \"password\"\n-    click_on \"Login\"\n-\n-    expect(current_path).to eq(\"/dashboard\")\n+    allow_any_instance_of(ApplicationController).to receive(:current_user).and_return(user_one)\n \n     visit \"/orders\"\n     expect(page).to have_content(\"Welcome Roger\")\n     expect(page).to_not have_content(\"Order #1\")\n \n-    visit \"/orders/1\"\n+    visit \"/orders/2\"\n     expect(page).to_not have_content(\"Order #1\")\n     expect(page).to have_content(\"The page you were looking for doesn't exist\")\n   end\n \n   scenario \"user cannot access admin functionality/views\" do\n-    create_user\n-\n-    visit login_path\n+    user = create_user\n \n-    click_on \"Login\"\n-    fill_in \"Username\", with: \"turing123\"\n-    fill_in \"Password\", with: \"password\"\n-    click_on \"Login\"\n-\n-    expect(current_path).to eq(\"/dashboard\")\n+    allow_any_instance_of(ApplicationController).to receive(:current_user).and_return(user)","path":"spec/features/authenticated_user_security_spec.rb","position":36,"original_position":36,"commit_id":"dd50990eb89bf9652b40b253065972ae66d32b33","original_commit_id":"dd50990eb89bf9652b40b253065972ae66d32b33","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":"Line is too long. [91/80]","created_at":"2016-06-13T22:10:08Z","updated_at":"2016-06-13T22:10:08Z","html_url":"https://github.com/ExCaelum/desk-nomad/pull/101#discussion_r66878022","pull_request_url":"https://api.github.com/repos/ExCaelum/desk-nomad/pulls/101","_links":{"self":{"href":"https://api.github.com/repos/ExCaelum/desk-nomad/pulls/comments/66878022"},"html":{"href":"https://github.com/ExCaelum/desk-nomad/pull/101#discussion_r66878022"},"pull_request":{"href":"https://api.github.com/repos/ExCaelum/desk-nomad/pulls/101"}}},"pull_request":{"url":"https://api.github.com/repos/ExCaelum/desk-nomad/pulls/101","id":73651602,"html_url":"https://github.com/ExCaelum/desk-nomad/pull/101","diff_url":"https://github.com/ExCaelum/desk-nomad/pull/101.diff","patch_url":"https://github.com/ExCaelum/desk-nomad/pull/101.patch","issue_url":"https://api.github.com/repos/ExCaelum/desk-nomad/issues/101","number":101,"state":"open","locked":false,"title":"Refactor others specs for login stub","user":{"login":"nickpisciotta","id":13399432,"avatar_url":"https://avatars.githubusercontent.com/u/13399432?v=3","gravatar_id":"","url":"https://api.github.com/users/nickpisciotta","html_url":"https://github.com/nickpisciotta","followers_url":"https://api.github.com/users/nickpisciotta/followers","following_url":"https://api.github.com/users/nickpisciotta/following{/other_user}","gists_url":"https://api.github.com/users/nickpisciotta/gists{/gist_id}","starred_url":"https://api.github.com/users/nickpisciotta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nickpisciotta/subscriptions","organizations_url":"https://api.github.com/users/nickpisciotta/orgs","repos_url":"https://api.github.com/users/nickpisciotta/repos","events_url":"https://api.github.com/users/nickpisciotta/events{/privacy}","received_events_url":"https://api.github.com/users/nickpisciotta/received_events","type":"User","site_admin":false},"body":"Added login stubs where applicable","created_at":"2016-06-13T22:10:03Z","updated_at":"2016-06-13T22:10:09Z","closed_at":null,"merged_at":null,"merge_commit_sha":"3fd2de07646922d27e280b4167f03aa21833cfe3","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/ExCaelum/desk-nomad/pulls/101/commits","review_comments_url":"https://api.github.com/repos/ExCaelum/desk-nomad/pulls/101/comments","review_comment_url":"https://api.github.com/repos/ExCaelum/desk-nomad/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ExCaelum/desk-nomad/issues/101/comments","statuses_url":"https://api.github.com/repos/ExCaelum/desk-nomad/statuses/dd50990eb89bf9652b40b253065972ae66d32b33","head":{"label":"ExCaelum:refactor-others-specs-for-login-stub","ref":"refactor-others-specs-for-login-stub","sha":"dd50990eb89bf9652b40b253065972ae66d32b33","user":{"login":"ExCaelum","id":16654741,"avatar_url":"https://avatars.githubusercontent.com/u/16654741?v=3","gravatar_id":"","url":"https://api.github.com/users/ExCaelum","html_url":"https://github.com/ExCaelum","followers_url":"https://api.github.com/users/ExCaelum/followers","following_url":"https://api.github.com/users/ExCaelum/following{/other_user}","gists_url":"https://api.github.com/users/ExCaelum/gists{/gist_id}","starred_url":"https://api.github.com/users/ExCaelum/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ExCaelum/subscriptions","organizations_url":"https://api.github.com/users/ExCaelum/orgs","repos_url":"https://api.github.com/users/ExCaelum/repos","events_url":"https://api.github.com/users/ExCaelum/events{/privacy}","received_events_url":"https://api.github.com/users/ExCaelum/received_events","type":"User","site_admin":false},"repo":{"id":60564320,"name":"desk-nomad","full_name":"ExCaelum/desk-nomad","owner":{"login":"ExCaelum","id":16654741,"avatar_url":"https://avatars.githubusercontent.com/u/16654741?v=3","gravatar_id":"","url":"https://api.github.com/users/ExCaelum","html_url":"https://github.com/ExCaelum","followers_url":"https://api.github.com/users/ExCaelum/followers","following_url":"https://api.github.com/users/ExCaelum/following{/other_user}","gists_url":"https://api.github.com/users/ExCaelum/gists{/gist_id}","starred_url":"https://api.github.com/users/ExCaelum/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ExCaelum/subscriptions","organizations_url":"https://api.github.com/users/ExCaelum/orgs","repos_url":"https://api.github.com/users/ExCaelum/repos","events_url":"https://api.github.com/users/ExCaelum/events{/privacy}","received_events_url":"https://api.github.com/users/ExCaelum/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ExCaelum/desk-nomad","description":"","fork":false,"url":"https://api.github.com/repos/ExCaelum/desk-nomad","forks_url":"https://api.github.com/repos/ExCaelum/desk-nomad/forks","keys_url":"https://api.github.com/repos/ExCaelum/desk-nomad/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ExCaelum/desk-nomad/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ExCaelum/desk-nomad/teams","hooks_url":"https://api.github.com/repos/ExCaelum/desk-nomad/hooks","issue_events_url":"https://api.github.com/repos/ExCaelum/desk-nomad/issues/events{/number}","events_url":"https://api.github.com/repos/ExCaelum/desk-nomad/events","assignees_url":"https://api.github.com/repos/ExCaelum/desk-nomad/assignees{/user}","branches_url":"https://api.github.com/repos/ExCaelum/desk-nomad/branches{/branch}","tags_url":"https://api.github.com/repos/ExCaelum/desk-nomad/tags","blobs_url":"https://api.github.com/repos/ExCaelum/desk-nomad/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ExCaelum/desk-nomad/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ExCaelum/desk-nomad/git/refs{/sha}","trees_url":"https://api.github.com/repos/ExCaelum/desk-nomad/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ExCaelum/desk-nomad/statuses/{sha}","languages_url":"https://api.github.com/repos/ExCaelum/desk-nomad/languages","stargazers_url":"https://api.github.com/repos/ExCaelum/desk-nomad/stargazers","contributors_url":"https://api.github.com/repos/ExCaelum/desk-nomad/contributors","subscribers_url":"https://api.github.com/repos/ExCaelum/desk-nomad/subscribers","subscription_url":"https://api.github.com/repos/ExCaelum/desk-nomad/subscription","commits_url":"https://api.github.com/repos/ExCaelum/desk-nomad/commits{/sha}","git_commits_url":"https://api.github.com/repos/ExCaelum/desk-nomad/git/commits{/sha}","comments_url":"https://api.github.com/repos/ExCaelum/desk-nomad/comments{/number}","issue_comment_url":"https://api.github.com/repos/ExCaelum/desk-nomad/issues/comments{/number}","contents_url":"https://api.github.com/repos/ExCaelum/desk-nomad/contents/{+path}","compare_url":"https://api.github.com/repos/ExCaelum/desk-nomad/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ExCaelum/desk-nomad/merges","archive_url":"https://api.github.com/repos/ExCaelum/desk-nomad/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ExCaelum/desk-nomad/downloads","issues_url":"https://api.github.com/repos/ExCaelum/desk-nomad/issues{/number}","pulls_url":"https://api.github.com/repos/ExCaelum/desk-nomad/pulls{/number}","milestones_url":"https://api.github.com/repos/ExCaelum/desk-nomad/milestones{/number}","notifications_url":"https://api.github.com/repos/ExCaelum/desk-nomad/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ExCaelum/desk-nomad/labels{/name}","releases_url":"https://api.github.com/repos/ExCaelum/desk-nomad/releases{/id}","deployments_url":"https://api.github.com/repos/ExCaelum/desk-nomad/deployments","created_at":"2016-06-06T22:12:35Z","updated_at":"2016-06-13T21:58:48Z","pushed_at":"2016-06-13T22:10:03Z","git_url":"git://github.com/ExCaelum/desk-nomad.git","ssh_url":"git@github.com:ExCaelum/desk-nomad.git","clone_url":"https://github.com/ExCaelum/desk-nomad.git","svn_url":"https://github.com/ExCaelum/desk-nomad","homepage":"https://desk-nomad.herokuapp.com/","size":14076,"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":28,"forks":0,"open_issues":28,"watchers":0,"default_branch":"master"}},"base":{"label":"ExCaelum:dev","ref":"dev","sha":"4dd8f104321199a5e1367cfeffe816cabc46023a","user":{"login":"ExCaelum","id":16654741,"avatar_url":"https://avatars.githubusercontent.com/u/16654741?v=3","gravatar_id":"","url":"https://api.github.com/users/ExCaelum","html_url":"https://github.com/ExCaelum","followers_url":"https://api.github.com/users/ExCaelum/followers","following_url":"https://api.github.com/users/ExCaelum/following{/other_user}","gists_url":"https://api.github.com/users/ExCaelum/gists{/gist_id}","starred_url":"https://api.github.com/users/ExCaelum/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ExCaelum/subscriptions","organizations_url":"https://api.github.com/users/ExCaelum/orgs","repos_url":"https://api.github.com/users/ExCaelum/repos","events_url":"https://api.github.com/users/ExCaelum/events{/privacy}","received_events_url":"https://api.github.com/users/ExCaelum/received_events","type":"User","site_admin":false},"repo":{"id":60564320,"name":"desk-nomad","full_name":"ExCaelum/desk-nomad","owner":{"login":"ExCaelum","id":16654741,"avatar_url":"https://avatars.githubusercontent.com/u/16654741?v=3","gravatar_id":"","url":"https://api.github.com/users/ExCaelum","html_url":"https://github.com/ExCaelum","followers_url":"https://api.github.com/users/ExCaelum/followers","following_url":"https://api.github.com/users/ExCaelum/following{/other_user}","gists_url":"https://api.github.com/users/ExCaelum/gists{/gist_id}","starred_url":"https://api.github.com/users/ExCaelum/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ExCaelum/subscriptions","organizations_url":"https://api.github.com/users/ExCaelum/orgs","repos_url":"https://api.github.com/users/ExCaelum/repos","events_url":"https://api.github.com/users/ExCaelum/events{/privacy}","received_events_url":"https://api.github.com/users/ExCaelum/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ExCaelum/desk-nomad","description":"","fork":false,"url":"https://api.github.com/repos/ExCaelum/desk-nomad","forks_url":"https://api.github.com/repos/ExCaelum/desk-nomad/forks","keys_url":"https://api.github.com/repos/ExCaelum/desk-nomad/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ExCaelum/desk-nomad/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ExCaelum/desk-nomad/teams","hooks_url":"https://api.github.com/repos/ExCaelum/desk-nomad/hooks","issue_events_url":"https://api.github.com/repos/ExCaelum/desk-nomad/issues/events{/number}","events_url":"https://api.github.com/repos/ExCaelum/desk-nomad/events","assignees_url":"https://api.github.com/repos/ExCaelum/desk-nomad/assignees{/user}","branches_url":"https://api.github.com/repos/ExCaelum/desk-nomad/branches{/branch}","tags_url":"https://api.github.com/repos/ExCaelum/desk-nomad/tags","blobs_url":"https://api.github.com/repos/ExCaelum/desk-nomad/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ExCaelum/desk-nomad/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ExCaelum/desk-nomad/git/refs{/sha}","trees_url":"https://api.github.com/repos/ExCaelum/desk-nomad/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ExCaelum/desk-nomad/statuses/{sha}","languages_url":"https://api.github.com/repos/ExCaelum/desk-nomad/languages","stargazers_url":"https://api.github.com/repos/ExCaelum/desk-nomad/stargazers","contributors_url":"https://api.github.com/repos/ExCaelum/desk-nomad/contributors","subscribers_url":"https://api.github.com/repos/ExCaelum/desk-nomad/subscribers","subscription_url":"https://api.github.com/repos/ExCaelum/desk-nomad/subscription","commits_url":"https://api.github.com/repos/ExCaelum/desk-nomad/commits{/sha}","git_commits_url":"https://api.github.com/repos/ExCaelum/desk-nomad/git/commits{/sha}","comments_url":"https://api.github.com/repos/ExCaelum/desk-nomad/comments{/number}","issue_comment_url":"https://api.github.com/repos/ExCaelum/desk-nomad/issues/comments{/number}","contents_url":"https://api.github.com/repos/ExCaelum/desk-nomad/contents/{+path}","compare_url":"https://api.github.com/repos/ExCaelum/desk-nomad/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ExCaelum/desk-nomad/merges","archive_url":"https://api.github.com/repos/ExCaelum/desk-nomad/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ExCaelum/desk-nomad/downloads","issues_url":"https://api.github.com/repos/ExCaelum/desk-nomad/issues{/number}","pulls_url":"https://api.github.com/repos/ExCaelum/desk-nomad/pulls{/number}","milestones_url":"https://api.github.com/repos/ExCaelum/desk-nomad/milestones{/number}","notifications_url":"https://api.github.com/repos/ExCaelum/desk-nomad/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ExCaelum/desk-nomad/labels{/name}","releases_url":"https://api.github.com/repos/ExCaelum/desk-nomad/releases{/id}","deployments_url":"https://api.github.com/repos/ExCaelum/desk-nomad/deployments","created_at":"2016-06-06T22:12:35Z","updated_at":"2016-06-13T21:58:48Z","pushed_at":"2016-06-13T22:10:03Z","git_url":"git://github.com/ExCaelum/desk-nomad.git","ssh_url":"git@github.com:ExCaelum/desk-nomad.git","clone_url":"https://github.com/ExCaelum/desk-nomad.git","svn_url":"https://github.com/ExCaelum/desk-nomad","homepage":"https://desk-nomad.herokuapp.com/","size":14076,"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":28,"forks":0,"open_issues":28,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ExCaelum/desk-nomad/pulls/101"},"html":{"href":"https://github.com/ExCaelum/desk-nomad/pull/101"},"issue":{"href":"https://api.github.com/repos/ExCaelum/desk-nomad/issues/101"},"comments":{"href":"https://api.github.com/repos/ExCaelum/desk-nomad/issues/101/comments"},"review_comments":{"href":"https://api.github.com/repos/ExCaelum/desk-nomad/pulls/101/comments"},"review_comment":{"href":"https://api.github.com/repos/ExCaelum/desk-nomad/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ExCaelum/desk-nomad/pulls/101/commits"},"statuses":{"href":"https://api.github.com/repos/ExCaelum/desk-nomad/statuses/dd50990eb89bf9652b40b253065972ae66d32b33"}}}}
{"actor":{"display_login":"houndci-bot"}}