{"action":"created","comment":{"url":"https://api.github.com/repos/mikedao/the_pivot/pulls/comments/25134731","id":25134731,"diff_hunk":"@@ -0,0 +1,28 @@\n+require \"test_helper\"\n+\n+class CategoryIndexTest < ActionDispatch::IntegrationTest\n+  include Capybara::DSL\n+  include FactoryGirl::Syntax::Methods\n+\n+  test \"Categories index page does not display a category \n+  that has no associated projects\" do \n+  \tcategory = create(:category)\n+\n+  \tvisit root_path\n+\n+  \trefute page.has_content?(category.name)\n+  end\n+\n+  test \"Categories index page does display a category that \n+  has an associated project\" do\n+  \t# the factory for project automatically creates an associated \n+  \t# category","path":"test/integration/category_index_test.rb","position":19,"original_position":19,"commit_id":"69eee1f5f7de23d12c4f419899c77d2e382a18c7","original_commit_id":"69eee1f5f7de23d12c4f419899c77d2e382a18c7","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":"Tab detected.","created_at":"2015-02-22T18:14:42Z","updated_at":"2015-02-22T18:14:42Z","html_url":"https://github.com/mikedao/the_pivot/pull/178#discussion_r25134731","pull_request_url":"https://api.github.com/repos/mikedao/the_pivot/pulls/178","_links":{"self":{"href":"https://api.github.com/repos/mikedao/the_pivot/pulls/comments/25134731"},"html":{"href":"https://github.com/mikedao/the_pivot/pull/178#discussion_r25134731"},"pull_request":{"href":"https://api.github.com/repos/mikedao/the_pivot/pulls/178"}}},"pull_request":{"url":"https://api.github.com/repos/mikedao/the_pivot/pulls/178","id":29773677,"html_url":"https://github.com/mikedao/the_pivot/pull/178","diff_url":"https://github.com/mikedao/the_pivot/pull/178.diff","patch_url":"https://github.com/mikedao/the_pivot/pull/178.patch","issue_url":"https://api.github.com/repos/mikedao/the_pivot/issues/178","number":178,"state":"open","locked":false,"title":"Category project association; closes #162","user":{"login":"AdamSmith910","id":4065543,"avatar_url":"https://avatars.githubusercontent.com/u/4065543?v=3","gravatar_id":"","url":"https://api.github.com/users/AdamSmith910","html_url":"https://github.com/AdamSmith910","followers_url":"https://api.github.com/users/AdamSmith910/followers","following_url":"https://api.github.com/users/AdamSmith910/following{/other_user}","gists_url":"https://api.github.com/users/AdamSmith910/gists{/gist_id}","starred_url":"https://api.github.com/users/AdamSmith910/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AdamSmith910/subscriptions","organizations_url":"https://api.github.com/users/AdamSmith910/orgs","repos_url":"https://api.github.com/users/AdamSmith910/repos","events_url":"https://api.github.com/users/AdamSmith910/events{/privacy}","received_events_url":"https://api.github.com/users/AdamSmith910/received_events","type":"User","site_admin":false},"body":"I cleaned up the style of the admin/tenants/index page so it looked better by switching the <th> alignment from center to left\r\n\r\nI removed the redundant Tenants link from the admin dashboard because the borrowers link is already in the admins navbar\r\n\r\nI created a message that displays for the categories/show if the category in question does not have an projects associated with it\r\n\r\nI wrote tests for the above\r\n\r\n","created_at":"2015-02-22T17:41:37Z","updated_at":"2015-02-22T18:14:42Z","closed_at":null,"merged_at":null,"merge_commit_sha":"0b7cb13d4ca63eeec5ecbe29b8e7e4081b28c88f","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/mikedao/the_pivot/pulls/178/commits","review_comments_url":"https://api.github.com/repos/mikedao/the_pivot/pulls/178/comments","review_comment_url":"https://api.github.com/repos/mikedao/the_pivot/pulls/comments/{number}","comments_url":"https://api.github.com/repos/mikedao/the_pivot/issues/178/comments","statuses_url":"https://api.github.com/repos/mikedao/the_pivot/statuses/69eee1f5f7de23d12c4f419899c77d2e382a18c7","head":{"label":"mikedao:category_project_association","ref":"category_project_association","sha":"69eee1f5f7de23d12c4f419899c77d2e382a18c7","user":{"login":"mikedao","id":3011748,"avatar_url":"https://avatars.githubusercontent.com/u/3011748?v=3","gravatar_id":"","url":"https://api.github.com/users/mikedao","html_url":"https://github.com/mikedao","followers_url":"https://api.github.com/users/mikedao/followers","following_url":"https://api.github.com/users/mikedao/following{/other_user}","gists_url":"https://api.github.com/users/mikedao/gists{/gist_id}","starred_url":"https://api.github.com/users/mikedao/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mikedao/subscriptions","organizations_url":"https://api.github.com/users/mikedao/orgs","repos_url":"https://api.github.com/users/mikedao/repos","events_url":"https://api.github.com/users/mikedao/events{/privacy}","received_events_url":"https://api.github.com/users/mikedao/received_events","type":"User","site_admin":false},"repo":{"id":30558977,"name":"the_pivot","full_name":"mikedao/the_pivot","owner":{"login":"mikedao","id":3011748,"avatar_url":"https://avatars.githubusercontent.com/u/3011748?v=3","gravatar_id":"","url":"https://api.github.com/users/mikedao","html_url":"https://github.com/mikedao","followers_url":"https://api.github.com/users/mikedao/followers","following_url":"https://api.github.com/users/mikedao/following{/other_user}","gists_url":"https://api.github.com/users/mikedao/gists{/gist_id}","starred_url":"https://api.github.com/users/mikedao/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mikedao/subscriptions","organizations_url":"https://api.github.com/users/mikedao/orgs","repos_url":"https://api.github.com/users/mikedao/repos","events_url":"https://api.github.com/users/mikedao/events{/privacy}","received_events_url":"https://api.github.com/users/mikedao/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mikedao/the_pivot","description":"","fork":false,"url":"https://api.github.com/repos/mikedao/the_pivot","forks_url":"https://api.github.com/repos/mikedao/the_pivot/forks","keys_url":"https://api.github.com/repos/mikedao/the_pivot/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mikedao/the_pivot/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mikedao/the_pivot/teams","hooks_url":"https://api.github.com/repos/mikedao/the_pivot/hooks","issue_events_url":"https://api.github.com/repos/mikedao/the_pivot/issues/events{/number}","events_url":"https://api.github.com/repos/mikedao/the_pivot/events","assignees_url":"https://api.github.com/repos/mikedao/the_pivot/assignees{/user}","branches_url":"https://api.github.com/repos/mikedao/the_pivot/branches{/branch}","tags_url":"https://api.github.com/repos/mikedao/the_pivot/tags","blobs_url":"https://api.github.com/repos/mikedao/the_pivot/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mikedao/the_pivot/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mikedao/the_pivot/git/refs{/sha}","trees_url":"https://api.github.com/repos/mikedao/the_pivot/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mikedao/the_pivot/statuses/{sha}","languages_url":"https://api.github.com/repos/mikedao/the_pivot/languages","stargazers_url":"https://api.github.com/repos/mikedao/the_pivot/stargazers","contributors_url":"https://api.github.com/repos/mikedao/the_pivot/contributors","subscribers_url":"https://api.github.com/repos/mikedao/the_pivot/subscribers","subscription_url":"https://api.github.com/repos/mikedao/the_pivot/subscription","commits_url":"https://api.github.com/repos/mikedao/the_pivot/commits{/sha}","git_commits_url":"https://api.github.com/repos/mikedao/the_pivot/git/commits{/sha}","comments_url":"https://api.github.com/repos/mikedao/the_pivot/comments{/number}","issue_comment_url":"https://api.github.com/repos/mikedao/the_pivot/issues/comments{/number}","contents_url":"https://api.github.com/repos/mikedao/the_pivot/contents/{+path}","compare_url":"https://api.github.com/repos/mikedao/the_pivot/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mikedao/the_pivot/merges","archive_url":"https://api.github.com/repos/mikedao/the_pivot/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mikedao/the_pivot/downloads","issues_url":"https://api.github.com/repos/mikedao/the_pivot/issues{/number}","pulls_url":"https://api.github.com/repos/mikedao/the_pivot/pulls{/number}","milestones_url":"https://api.github.com/repos/mikedao/the_pivot/milestones{/number}","notifications_url":"https://api.github.com/repos/mikedao/the_pivot/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mikedao/the_pivot/labels{/name}","releases_url":"https://api.github.com/repos/mikedao/the_pivot/releases{/id}","created_at":"2015-02-09T21:18:30Z","updated_at":"2015-02-22T00:07:10Z","pushed_at":"2015-02-22T18:14:37Z","git_url":"git://github.com/mikedao/the_pivot.git","ssh_url":"git@github.com:mikedao/the_pivot.git","clone_url":"https://github.com/mikedao/the_pivot.git","svn_url":"https://github.com/mikedao/the_pivot","homepage":null,"size":15508,"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":62,"forks":0,"open_issues":62,"watchers":0,"default_branch":"master"}},"base":{"label":"mikedao:master","ref":"master","sha":"271fe62c5efd163950c204f5509459e07ad43879","user":{"login":"mikedao","id":3011748,"avatar_url":"https://avatars.githubusercontent.com/u/3011748?v=3","gravatar_id":"","url":"https://api.github.com/users/mikedao","html_url":"https://github.com/mikedao","followers_url":"https://api.github.com/users/mikedao/followers","following_url":"https://api.github.com/users/mikedao/following{/other_user}","gists_url":"https://api.github.com/users/mikedao/gists{/gist_id}","starred_url":"https://api.github.com/users/mikedao/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mikedao/subscriptions","organizations_url":"https://api.github.com/users/mikedao/orgs","repos_url":"https://api.github.com/users/mikedao/repos","events_url":"https://api.github.com/users/mikedao/events{/privacy}","received_events_url":"https://api.github.com/users/mikedao/received_events","type":"User","site_admin":false},"repo":{"id":30558977,"name":"the_pivot","full_name":"mikedao/the_pivot","owner":{"login":"mikedao","id":3011748,"avatar_url":"https://avatars.githubusercontent.com/u/3011748?v=3","gravatar_id":"","url":"https://api.github.com/users/mikedao","html_url":"https://github.com/mikedao","followers_url":"https://api.github.com/users/mikedao/followers","following_url":"https://api.github.com/users/mikedao/following{/other_user}","gists_url":"https://api.github.com/users/mikedao/gists{/gist_id}","starred_url":"https://api.github.com/users/mikedao/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mikedao/subscriptions","organizations_url":"https://api.github.com/users/mikedao/orgs","repos_url":"https://api.github.com/users/mikedao/repos","events_url":"https://api.github.com/users/mikedao/events{/privacy}","received_events_url":"https://api.github.com/users/mikedao/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mikedao/the_pivot","description":"","fork":false,"url":"https://api.github.com/repos/mikedao/the_pivot","forks_url":"https://api.github.com/repos/mikedao/the_pivot/forks","keys_url":"https://api.github.com/repos/mikedao/the_pivot/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mikedao/the_pivot/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mikedao/the_pivot/teams","hooks_url":"https://api.github.com/repos/mikedao/the_pivot/hooks","issue_events_url":"https://api.github.com/repos/mikedao/the_pivot/issues/events{/number}","events_url":"https://api.github.com/repos/mikedao/the_pivot/events","assignees_url":"https://api.github.com/repos/mikedao/the_pivot/assignees{/user}","branches_url":"https://api.github.com/repos/mikedao/the_pivot/branches{/branch}","tags_url":"https://api.github.com/repos/mikedao/the_pivot/tags","blobs_url":"https://api.github.com/repos/mikedao/the_pivot/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mikedao/the_pivot/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mikedao/the_pivot/git/refs{/sha}","trees_url":"https://api.github.com/repos/mikedao/the_pivot/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mikedao/the_pivot/statuses/{sha}","languages_url":"https://api.github.com/repos/mikedao/the_pivot/languages","stargazers_url":"https://api.github.com/repos/mikedao/the_pivot/stargazers","contributors_url":"https://api.github.com/repos/mikedao/the_pivot/contributors","subscribers_url":"https://api.github.com/repos/mikedao/the_pivot/subscribers","subscription_url":"https://api.github.com/repos/mikedao/the_pivot/subscription","commits_url":"https://api.github.com/repos/mikedao/the_pivot/commits{/sha}","git_commits_url":"https://api.github.com/repos/mikedao/the_pivot/git/commits{/sha}","comments_url":"https://api.github.com/repos/mikedao/the_pivot/comments{/number}","issue_comment_url":"https://api.github.com/repos/mikedao/the_pivot/issues/comments{/number}","contents_url":"https://api.github.com/repos/mikedao/the_pivot/contents/{+path}","compare_url":"https://api.github.com/repos/mikedao/the_pivot/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mikedao/the_pivot/merges","archive_url":"https://api.github.com/repos/mikedao/the_pivot/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mikedao/the_pivot/downloads","issues_url":"https://api.github.com/repos/mikedao/the_pivot/issues{/number}","pulls_url":"https://api.github.com/repos/mikedao/the_pivot/pulls{/number}","milestones_url":"https://api.github.com/repos/mikedao/the_pivot/milestones{/number}","notifications_url":"https://api.github.com/repos/mikedao/the_pivot/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mikedao/the_pivot/labels{/name}","releases_url":"https://api.github.com/repos/mikedao/the_pivot/releases{/id}","created_at":"2015-02-09T21:18:30Z","updated_at":"2015-02-22T00:07:10Z","pushed_at":"2015-02-22T18:14:37Z","git_url":"git://github.com/mikedao/the_pivot.git","ssh_url":"git@github.com:mikedao/the_pivot.git","clone_url":"https://github.com/mikedao/the_pivot.git","svn_url":"https://github.com/mikedao/the_pivot","homepage":null,"size":15508,"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":62,"forks":0,"open_issues":62,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mikedao/the_pivot/pulls/178"},"html":{"href":"https://github.com/mikedao/the_pivot/pull/178"},"issue":{"href":"https://api.github.com/repos/mikedao/the_pivot/issues/178"},"comments":{"href":"https://api.github.com/repos/mikedao/the_pivot/issues/178/comments"},"review_comments":{"href":"https://api.github.com/repos/mikedao/the_pivot/pulls/178/comments"},"review_comment":{"href":"https://api.github.com/repos/mikedao/the_pivot/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/mikedao/the_pivot/pulls/178/commits"},"statuses":{"href":"https://api.github.com/repos/mikedao/the_pivot/statuses/69eee1f5f7de23d12c4f419899c77d2e382a18c7"}}}}