{"action":"created","comment":{"url":"https://api.github.com/repos/EmilyMB/la-joya/pulls/comments/25809736","id":25809736,"diff_hunk":"@@ -0,0 +1,65 @@\n+require 'spec_helper'\n+\n+describe 'landing page' do\n+  include Capybara::DSL\n+\n+  context 'user not logged in' do\n+    it 'visits root_path' do\n+      visit root_path\n+      expect(current_path).to eq root_path\n+    end\n+  end\n+end\n+\n+describe 'home page' do\n+  include Capybara::DSL\n+\n+  context 'user not logged in' do\n+    it 'visits home_path' do\n+      visit home_path\n+      expect(current_path).to eq root_path\n+    end\n+  end\n+\n+  context 'user logged in' do\n+    before(:each) do\n+      user = create(:user)\n+      allow_any_instance_of(ApplicationController).\n+      to receive(:current_user).and_return(user)","path":"spec/routing/guest_spec.rb","position":28,"original_position":28,"commit_id":"1f0840018d0baf0a9598e60046b71c5be7681786","original_commit_id":"1f0840018d0baf0a9598e60046b71c5be7681786","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":"Use 2 (not 0) spaces for indenting an expression spanning multiple lines.","created_at":"2015-03-04T20:17:24Z","updated_at":"2015-03-04T20:17:24Z","html_url":"https://github.com/EmilyMB/la-joya/pull/16#discussion_r25809736","pull_request_url":"https://api.github.com/repos/EmilyMB/la-joya/pulls/16","_links":{"self":{"href":"https://api.github.com/repos/EmilyMB/la-joya/pulls/comments/25809736"},"html":{"href":"https://github.com/EmilyMB/la-joya/pull/16#discussion_r25809736"},"pull_request":{"href":"https://api.github.com/repos/EmilyMB/la-joya/pulls/16"}}},"pull_request":{"url":"https://api.github.com/repos/EmilyMB/la-joya/pulls/16","id":30500343,"html_url":"https://github.com/EmilyMB/la-joya/pull/16","diff_url":"https://github.com/EmilyMB/la-joya/pull/16.diff","patch_url":"https://github.com/EmilyMB/la-joya/pull/16.patch","issue_url":"https://api.github.com/repos/EmilyMB/la-joya/issues/16","number":16,"state":"open","locked":false,"title":"Add Rspec and update login flow; closes #13","user":{"login":"EmilyMB","id":8007635,"avatar_url":"https://avatars.githubusercontent.com/u/8007635?v=3","gravatar_id":"","url":"https://api.github.com/users/EmilyMB","html_url":"https://github.com/EmilyMB","followers_url":"https://api.github.com/users/EmilyMB/followers","following_url":"https://api.github.com/users/EmilyMB/following{/other_user}","gists_url":"https://api.github.com/users/EmilyMB/gists{/gist_id}","starred_url":"https://api.github.com/users/EmilyMB/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/EmilyMB/subscriptions","organizations_url":"https://api.github.com/users/EmilyMB/orgs","repos_url":"https://api.github.com/users/EmilyMB/repos","events_url":"https://api.github.com/users/EmilyMB/events{/privacy}","received_events_url":"https://api.github.com/users/EmilyMB/received_events","type":"User","site_admin":false},"body":"This PR improves UX by simplifying the login flow.\r\n\r\nChanges include:\r\n* Add new landing page.\r\n* Require login to proceed to any routes besides the landing page.\r\n* Replace test with RSpec\r\n* Add first route tests.","created_at":"2015-03-04T20:17:18Z","updated_at":"2015-03-04T20:17:24Z","closed_at":null,"merged_at":null,"merge_commit_sha":"bcc133d692d0c574ef6a98fb324d7a0130c1ebe8","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/EmilyMB/la-joya/pulls/16/commits","review_comments_url":"https://api.github.com/repos/EmilyMB/la-joya/pulls/16/comments","review_comment_url":"https://api.github.com/repos/EmilyMB/la-joya/pulls/comments{/number}","comments_url":"https://api.github.com/repos/EmilyMB/la-joya/issues/16/comments","statuses_url":"https://api.github.com/repos/EmilyMB/la-joya/statuses/1f0840018d0baf0a9598e60046b71c5be7681786","head":{"label":"EmilyMB:login-flow","ref":"login-flow","sha":"1f0840018d0baf0a9598e60046b71c5be7681786","user":{"login":"EmilyMB","id":8007635,"avatar_url":"https://avatars.githubusercontent.com/u/8007635?v=3","gravatar_id":"","url":"https://api.github.com/users/EmilyMB","html_url":"https://github.com/EmilyMB","followers_url":"https://api.github.com/users/EmilyMB/followers","following_url":"https://api.github.com/users/EmilyMB/following{/other_user}","gists_url":"https://api.github.com/users/EmilyMB/gists{/gist_id}","starred_url":"https://api.github.com/users/EmilyMB/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/EmilyMB/subscriptions","organizations_url":"https://api.github.com/users/EmilyMB/orgs","repos_url":"https://api.github.com/users/EmilyMB/repos","events_url":"https://api.github.com/users/EmilyMB/events{/privacy}","received_events_url":"https://api.github.com/users/EmilyMB/received_events","type":"User","site_admin":false},"repo":{"id":31470172,"name":"la-joya","full_name":"EmilyMB/la-joya","owner":{"login":"EmilyMB","id":8007635,"avatar_url":"https://avatars.githubusercontent.com/u/8007635?v=3","gravatar_id":"","url":"https://api.github.com/users/EmilyMB","html_url":"https://github.com/EmilyMB","followers_url":"https://api.github.com/users/EmilyMB/followers","following_url":"https://api.github.com/users/EmilyMB/following{/other_user}","gists_url":"https://api.github.com/users/EmilyMB/gists{/gist_id}","starred_url":"https://api.github.com/users/EmilyMB/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/EmilyMB/subscriptions","organizations_url":"https://api.github.com/users/EmilyMB/orgs","repos_url":"https://api.github.com/users/EmilyMB/repos","events_url":"https://api.github.com/users/EmilyMB/events{/privacy}","received_events_url":"https://api.github.com/users/EmilyMB/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/EmilyMB/la-joya","description":"","fork":false,"url":"https://api.github.com/repos/EmilyMB/la-joya","forks_url":"https://api.github.com/repos/EmilyMB/la-joya/forks","keys_url":"https://api.github.com/repos/EmilyMB/la-joya/keys{/key_id}","collaborators_url":"https://api.github.com/repos/EmilyMB/la-joya/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/EmilyMB/la-joya/teams","hooks_url":"https://api.github.com/repos/EmilyMB/la-joya/hooks","issue_events_url":"https://api.github.com/repos/EmilyMB/la-joya/issues/events{/number}","events_url":"https://api.github.com/repos/EmilyMB/la-joya/events","assignees_url":"https://api.github.com/repos/EmilyMB/la-joya/assignees{/user}","branches_url":"https://api.github.com/repos/EmilyMB/la-joya/branches{/branch}","tags_url":"https://api.github.com/repos/EmilyMB/la-joya/tags","blobs_url":"https://api.github.com/repos/EmilyMB/la-joya/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/EmilyMB/la-joya/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/EmilyMB/la-joya/git/refs{/sha}","trees_url":"https://api.github.com/repos/EmilyMB/la-joya/git/trees{/sha}","statuses_url":"https://api.github.com/repos/EmilyMB/la-joya/statuses/{sha}","languages_url":"https://api.github.com/repos/EmilyMB/la-joya/languages","stargazers_url":"https://api.github.com/repos/EmilyMB/la-joya/stargazers","contributors_url":"https://api.github.com/repos/EmilyMB/la-joya/contributors","subscribers_url":"https://api.github.com/repos/EmilyMB/la-joya/subscribers","subscription_url":"https://api.github.com/repos/EmilyMB/la-joya/subscription","commits_url":"https://api.github.com/repos/EmilyMB/la-joya/commits{/sha}","git_commits_url":"https://api.github.com/repos/EmilyMB/la-joya/git/commits{/sha}","comments_url":"https://api.github.com/repos/EmilyMB/la-joya/comments{/number}","issue_comment_url":"https://api.github.com/repos/EmilyMB/la-joya/issues/comments{/number}","contents_url":"https://api.github.com/repos/EmilyMB/la-joya/contents/{+path}","compare_url":"https://api.github.com/repos/EmilyMB/la-joya/compare/{base}...{head}","merges_url":"https://api.github.com/repos/EmilyMB/la-joya/merges","archive_url":"https://api.github.com/repos/EmilyMB/la-joya/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/EmilyMB/la-joya/downloads","issues_url":"https://api.github.com/repos/EmilyMB/la-joya/issues{/number}","pulls_url":"https://api.github.com/repos/EmilyMB/la-joya/pulls{/number}","milestones_url":"https://api.github.com/repos/EmilyMB/la-joya/milestones{/number}","notifications_url":"https://api.github.com/repos/EmilyMB/la-joya/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/EmilyMB/la-joya/labels{/name}","releases_url":"https://api.github.com/repos/EmilyMB/la-joya/releases{/id}","created_at":"2015-02-28T17:32:53Z","updated_at":"2015-03-04T03:18:19Z","pushed_at":"2015-03-04T20:12:44Z","git_url":"git://github.com/EmilyMB/la-joya.git","ssh_url":"git@github.com:EmilyMB/la-joya.git","clone_url":"https://github.com/EmilyMB/la-joya.git","svn_url":"https://github.com/EmilyMB/la-joya","homepage":null,"size":0,"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":13,"forks":0,"open_issues":13,"watchers":0,"default_branch":"master"}},"base":{"label":"EmilyMB:master","ref":"master","sha":"46517c7a1456b1d3564807760d36c3e5c5e2e185","user":{"login":"EmilyMB","id":8007635,"avatar_url":"https://avatars.githubusercontent.com/u/8007635?v=3","gravatar_id":"","url":"https://api.github.com/users/EmilyMB","html_url":"https://github.com/EmilyMB","followers_url":"https://api.github.com/users/EmilyMB/followers","following_url":"https://api.github.com/users/EmilyMB/following{/other_user}","gists_url":"https://api.github.com/users/EmilyMB/gists{/gist_id}","starred_url":"https://api.github.com/users/EmilyMB/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/EmilyMB/subscriptions","organizations_url":"https://api.github.com/users/EmilyMB/orgs","repos_url":"https://api.github.com/users/EmilyMB/repos","events_url":"https://api.github.com/users/EmilyMB/events{/privacy}","received_events_url":"https://api.github.com/users/EmilyMB/received_events","type":"User","site_admin":false},"repo":{"id":31470172,"name":"la-joya","full_name":"EmilyMB/la-joya","owner":{"login":"EmilyMB","id":8007635,"avatar_url":"https://avatars.githubusercontent.com/u/8007635?v=3","gravatar_id":"","url":"https://api.github.com/users/EmilyMB","html_url":"https://github.com/EmilyMB","followers_url":"https://api.github.com/users/EmilyMB/followers","following_url":"https://api.github.com/users/EmilyMB/following{/other_user}","gists_url":"https://api.github.com/users/EmilyMB/gists{/gist_id}","starred_url":"https://api.github.com/users/EmilyMB/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/EmilyMB/subscriptions","organizations_url":"https://api.github.com/users/EmilyMB/orgs","repos_url":"https://api.github.com/users/EmilyMB/repos","events_url":"https://api.github.com/users/EmilyMB/events{/privacy}","received_events_url":"https://api.github.com/users/EmilyMB/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/EmilyMB/la-joya","description":"","fork":false,"url":"https://api.github.com/repos/EmilyMB/la-joya","forks_url":"https://api.github.com/repos/EmilyMB/la-joya/forks","keys_url":"https://api.github.com/repos/EmilyMB/la-joya/keys{/key_id}","collaborators_url":"https://api.github.com/repos/EmilyMB/la-joya/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/EmilyMB/la-joya/teams","hooks_url":"https://api.github.com/repos/EmilyMB/la-joya/hooks","issue_events_url":"https://api.github.com/repos/EmilyMB/la-joya/issues/events{/number}","events_url":"https://api.github.com/repos/EmilyMB/la-joya/events","assignees_url":"https://api.github.com/repos/EmilyMB/la-joya/assignees{/user}","branches_url":"https://api.github.com/repos/EmilyMB/la-joya/branches{/branch}","tags_url":"https://api.github.com/repos/EmilyMB/la-joya/tags","blobs_url":"https://api.github.com/repos/EmilyMB/la-joya/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/EmilyMB/la-joya/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/EmilyMB/la-joya/git/refs{/sha}","trees_url":"https://api.github.com/repos/EmilyMB/la-joya/git/trees{/sha}","statuses_url":"https://api.github.com/repos/EmilyMB/la-joya/statuses/{sha}","languages_url":"https://api.github.com/repos/EmilyMB/la-joya/languages","stargazers_url":"https://api.github.com/repos/EmilyMB/la-joya/stargazers","contributors_url":"https://api.github.com/repos/EmilyMB/la-joya/contributors","subscribers_url":"https://api.github.com/repos/EmilyMB/la-joya/subscribers","subscription_url":"https://api.github.com/repos/EmilyMB/la-joya/subscription","commits_url":"https://api.github.com/repos/EmilyMB/la-joya/commits{/sha}","git_commits_url":"https://api.github.com/repos/EmilyMB/la-joya/git/commits{/sha}","comments_url":"https://api.github.com/repos/EmilyMB/la-joya/comments{/number}","issue_comment_url":"https://api.github.com/repos/EmilyMB/la-joya/issues/comments{/number}","contents_url":"https://api.github.com/repos/EmilyMB/la-joya/contents/{+path}","compare_url":"https://api.github.com/repos/EmilyMB/la-joya/compare/{base}...{head}","merges_url":"https://api.github.com/repos/EmilyMB/la-joya/merges","archive_url":"https://api.github.com/repos/EmilyMB/la-joya/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/EmilyMB/la-joya/downloads","issues_url":"https://api.github.com/repos/EmilyMB/la-joya/issues{/number}","pulls_url":"https://api.github.com/repos/EmilyMB/la-joya/pulls{/number}","milestones_url":"https://api.github.com/repos/EmilyMB/la-joya/milestones{/number}","notifications_url":"https://api.github.com/repos/EmilyMB/la-joya/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/EmilyMB/la-joya/labels{/name}","releases_url":"https://api.github.com/repos/EmilyMB/la-joya/releases{/id}","created_at":"2015-02-28T17:32:53Z","updated_at":"2015-03-04T03:18:19Z","pushed_at":"2015-03-04T20:12:44Z","git_url":"git://github.com/EmilyMB/la-joya.git","ssh_url":"git@github.com:EmilyMB/la-joya.git","clone_url":"https://github.com/EmilyMB/la-joya.git","svn_url":"https://github.com/EmilyMB/la-joya","homepage":null,"size":0,"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":13,"forks":0,"open_issues":13,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/EmilyMB/la-joya/pulls/16"},"html":{"href":"https://github.com/EmilyMB/la-joya/pull/16"},"issue":{"href":"https://api.github.com/repos/EmilyMB/la-joya/issues/16"},"comments":{"href":"https://api.github.com/repos/EmilyMB/la-joya/issues/16/comments"},"review_comments":{"href":"https://api.github.com/repos/EmilyMB/la-joya/pulls/16/comments"},"review_comment":{"href":"https://api.github.com/repos/EmilyMB/la-joya/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/EmilyMB/la-joya/pulls/16/commits"},"statuses":{"href":"https://api.github.com/repos/EmilyMB/la-joya/statuses/1f0840018d0baf0a9598e60046b71c5be7681786"}}}}