{"action":"created","comment":{"url":"https://api.github.com/repos/mikedao/the_pivot/pulls/comments/24717838","id":24717838,"diff_hunk":"@@ -186,32 +191,32 @@ def setup\n     end\n   end\n \n-  test \"an admin can retire an item\" do\n+  test \"an admin can retire an project\" do\n     ApplicationController.any_instance.stubs(:current_user).returns(user)\n-    Item.destroy_all\n-    @item = Item.create(title: 'coffee', description: 'black nectar of the gods', price: 1200, retired: false)\n+    Project.destroy_all\n+    @project = Project.create(title: \"coffee\", description: \"black nectar of the gods\", price: 1200, retired: false)\n \n-    visit admin_items_path\n-    select 'true', from: \"retire[status_#{@item.id}]\"\n-    click_link_or_button('Retire')\n+    visit admin_projects_path\n+    select \"true\", from: \"retire[status_#{@project.id}]\"\n+    click_link_or_button(\"Retire\")\n \n     assert page.has_content?(\"Retired\")\n   end\n \n-  test \"an item does not appear on menu after admin retires it\" do\n+  test \"an project does not appear on menu after admin retires it\" do\n     ApplicationController.any_instance.stubs(:current_user).returns(user)\n-    Item.destroy_all\n-    @item = Item.create(title: 'coffee', description: 'black nectar of the gods', price: 1200, retired: false)\n-    visit items_path\n+    Project.destroy_all\n+    @project = Project.create(title: \"coffee\", description: \"black nectar of the gods\", price: 1200, retired: false)","path":"test/integration/admin_login_test.rb","position":301,"original_position":301,"commit_id":"ff53ecf0e88b3e8a330f11b5c930f964192fac40","original_commit_id":"ff53ecf0e88b3e8a330f11b5c930f964192fac40","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. [116/80]","created_at":"2015-02-14T22:24:24Z","updated_at":"2015-02-14T22:24:24Z","html_url":"https://github.com/mikedao/the_pivot/pull/81#discussion_r24717838","pull_request_url":"https://api.github.com/repos/mikedao/the_pivot/pulls/81","_links":{"self":{"href":"https://api.github.com/repos/mikedao/the_pivot/pulls/comments/24717838"},"html":{"href":"https://github.com/mikedao/the_pivot/pull/81#discussion_r24717838"},"pull_request":{"href":"https://api.github.com/repos/mikedao/the_pivot/pulls/81"}}},"pull_request":{"url":"https://api.github.com/repos/mikedao/the_pivot/pulls/81","id":29326189,"html_url":"https://github.com/mikedao/the_pivot/pull/81","diff_url":"https://github.com/mikedao/the_pivot/pull/81.diff","patch_url":"https://github.com/mikedao/the_pivot/pull/81.patch","issue_url":"https://api.github.com/repos/mikedao/the_pivot/issues/81","number":81,"state":"open","locked":false,"title":"Rename models and column names; closes #71","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":"Since this app has changed from a coffee shop to a micro-lending platform, some renaming was in order.\r\n\r\n**NOTE: Must db:drop db:create db:migrate db:reset after this pull request**\r\n\r\nChanges include:\r\n* Rename models: Item -> Project, ItemsCategory -> ProjectsCategory, ItemOrder -> Loan\r\n* Rename columns: all item_id columns -> project_id, etc.\r\n* Update all files throughout the project\r\n* Delete  test/fixtures/item_orders.yml since this not needed and after renaming was irrelevant and causing an error (ActiveRecord::StatementInvalid: PGError: ERROR: relation \"items_orders\" does not exist\" ","created_at":"2015-02-14T22:01:57Z","updated_at":"2015-02-14T22:24:24Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ae1395b9386918a92d7c42c400db3a00ddb6edb4","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/mikedao/the_pivot/pulls/81/commits","review_comments_url":"https://api.github.com/repos/mikedao/the_pivot/pulls/81/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/81/comments","statuses_url":"https://api.github.com/repos/mikedao/the_pivot/statuses/ff53ecf0e88b3e8a330f11b5c930f964192fac40","head":{"label":"mikedao:rename_models_and_tables","ref":"rename_models_and_tables","sha":"ff53ecf0e88b3e8a330f11b5c930f964192fac40","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-14T19:24:56Z","pushed_at":"2015-02-14T22:24:13Z","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":12668,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":47,"forks":0,"open_issues":47,"watchers":0,"default_branch":"master"}},"base":{"label":"mikedao:master","ref":"master","sha":"68af195181398e72d9ed8e96bfdd49c34d3e8cfd","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-14T19:24:56Z","pushed_at":"2015-02-14T22:24:13Z","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":12668,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":47,"forks":0,"open_issues":47,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mikedao/the_pivot/pulls/81"},"html":{"href":"https://github.com/mikedao/the_pivot/pull/81"},"issue":{"href":"https://api.github.com/repos/mikedao/the_pivot/issues/81"},"comments":{"href":"https://api.github.com/repos/mikedao/the_pivot/issues/81/comments"},"review_comments":{"href":"https://api.github.com/repos/mikedao/the_pivot/pulls/81/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/81/commits"},"statuses":{"href":"https://api.github.com/repos/mikedao/the_pivot/statuses/ff53ecf0e88b3e8a330f11b5c930f964192fac40"}}}}