{"action":"created","comment":{"url":"https://api.github.com/repos/mikedao/the_pivot/pulls/comments/24642404","id":24642404,"diff_hunk":"@@ -77,13 +77,14 @@ class GuestUserTest < ActionDispatch::IntegrationTest\n     non_tenant_category = create(:category, name: \"bad cats\")\n     tenant_category = create(:category, name: \"agriculture\")\n     non_tenant_item = create(:item, categories: [non_tenant_category])\n-    tenant = create(:tenant, organization: \"bob\")\n+    tenant = create(:tenant, organization: \"bob's\")","path":"test/integration/guest_user_test.rb","position":5,"original_position":5,"commit_id":"043dc4652bb959c50f9c504f2c5d3db468c66a3b","original_commit_id":"043dc4652bb959c50f9c504f2c5d3db468c66a3b","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":"I wanted to ensure that the organization was being parameterized correctly","created_at":"2015-02-13T03:30:56Z","updated_at":"2015-02-13T03:30:56Z","html_url":"https://github.com/mikedao/the_pivot/pull/74#discussion_r24642404","pull_request_url":"https://api.github.com/repos/mikedao/the_pivot/pulls/74","_links":{"self":{"href":"https://api.github.com/repos/mikedao/the_pivot/pulls/comments/24642404"},"html":{"href":"https://github.com/mikedao/the_pivot/pull/74#discussion_r24642404"},"pull_request":{"href":"https://api.github.com/repos/mikedao/the_pivot/pulls/74"}}},"pull_request":{"url":"https://api.github.com/repos/mikedao/the_pivot/pulls/74","id":29237403,"html_url":"https://github.com/mikedao/the_pivot/pull/74","diff_url":"https://github.com/mikedao/the_pivot/pull/74.diff","patch_url":"https://github.com/mikedao/the_pivot/pull/74.patch","issue_url":"https://api.github.com/repos/mikedao/the_pivot/issues/74","number":74,"state":"open","locked":false,"title":"Add tenant slug and tests; closes #72","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 involves general cleanup and organization. Rake db:migrate after this PR is merged.\r\n\r\nChanges include:\r\n* Add slug column to the tenant model (for increase clarity and url validation)\r\n* Remove/add misspelled column on item table\r\n* Fixed controllers/tenants/items_controller to reroute unknown/misspelled tenant slug's to root\r\n* Added unit tests for tenant model.\r\n\r\n","created_at":"2015-02-13T03:11:11Z","updated_at":"2015-02-13T03:30:56Z","closed_at":null,"merged_at":null,"merge_commit_sha":"343b66b953e8702401907e5c8be5db7313fca281","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/mikedao/the_pivot/pulls/74/commits","review_comments_url":"https://api.github.com/repos/mikedao/the_pivot/pulls/74/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/74/comments","statuses_url":"https://api.github.com/repos/mikedao/the_pivot/statuses/043dc4652bb959c50f9c504f2c5d3db468c66a3b","head":{"label":"mikedao:parameterize_names","ref":"parameterize_names","sha":"043dc4652bb959c50f9c504f2c5d3db468c66a3b","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-13T03:03:18Z","pushed_at":"2015-02-13T03:15:10Z","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":12472,"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":46,"forks":0,"open_issues":46,"watchers":0,"default_branch":"master"}},"base":{"label":"mikedao:master","ref":"master","sha":"f6fdf6a760f2ba4f76f26f2cfc56ceab9138bbcc","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-13T03:03:18Z","pushed_at":"2015-02-13T03:15:10Z","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":12472,"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":46,"forks":0,"open_issues":46,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mikedao/the_pivot/pulls/74"},"html":{"href":"https://github.com/mikedao/the_pivot/pull/74"},"issue":{"href":"https://api.github.com/repos/mikedao/the_pivot/issues/74"},"comments":{"href":"https://api.github.com/repos/mikedao/the_pivot/issues/74/comments"},"review_comments":{"href":"https://api.github.com/repos/mikedao/the_pivot/pulls/74/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/74/commits"},"statuses":{"href":"https://api.github.com/repos/mikedao/the_pivot/statuses/043dc4652bb959c50f9c504f2c5d3db468c66a3b"}}}}