{"action":"created","comment":{"url":"https://api.github.com/repos/PRX/cms.prx.org/pulls/comments/228580253","pull_request_review_id":168891082,"id":228580253,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIyODU4MDI1Mw==","diff_hunk":"@@ -7,6 +7,53 @@\n     create(:story, account: account, published_at: nil)\n   end\n \n+  it 'validates path is not a reserved word' do\n+    reservedpath = build(:account, path: ROUTE_RESERVED_WORDS.sample)\n+    refute reservedpath.valid?\n+    assert reservedpath.errors[:path].include? 'has already been taken'\n+  end\n+\n+  it 'validates path is not taken' do\n+    create(:account, path: 'takenpath')\n+    takenpath = build(:account, path: 'takenpath')\n+    refute takenpath.valid?\n+    assert takenpath.errors[:path].include? 'has already been taken'\n+  end\n+\n+  it 'validates presence of path' do\n+    nopath = build(:account, path: nil)\n+    refute nopath.valid?\n+    assert nopath.errors[:path].include? 'can\\'t be blank'\n+  end\n+\n+  it 'validates path is long enough' do\n+    shortpath = build(:account, path: '')\n+    refute shortpath.valid?\n+    assert shortpath.errors[:path].any? { |e| e.match /is too short/ }","path":"test/models/account_test.rb","position":26,"original_position":26,"commit_id":"492313a5dd45d12521047e495e8251747ded01cb","original_commit_id":"492313a5dd45d12521047e495e8251747ded01cb","user":{"login":"houndci-bot","id":6697940,"node_id":"MDQ6VXNlcjY2OTc5NDA=","avatar_url":"https://avatars0.githubusercontent.com/u/6697940?v=4","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":"Lint/AmbiguousBlockAssociation: Parenthesize the param shortpath.errors[:path].any? { |e| e.match /is too short/ } to make sure that the block will be associated with the shortpath.errors[:path].any? method call.","created_at":"2018-10-26T15:57:26Z","updated_at":"2018-10-26T15:57:27Z","html_url":"https://github.com/PRX/cms.prx.org/pull/471#discussion_r228580253","pull_request_url":"https://api.github.com/repos/PRX/cms.prx.org/pulls/471","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/PRX/cms.prx.org/pulls/comments/228580253"},"html":{"href":"https://github.com/PRX/cms.prx.org/pull/471#discussion_r228580253"},"pull_request":{"href":"https://api.github.com/repos/PRX/cms.prx.org/pulls/471"}}},"pull_request":{"url":"https://api.github.com/repos/PRX/cms.prx.org/pulls/471","id":224388328,"node_id":"MDExOlB1bGxSZXF1ZXN0MjI0Mzg4MzI4","html_url":"https://github.com/PRX/cms.prx.org/pull/471","diff_url":"https://github.com/PRX/cms.prx.org/pull/471.diff","patch_url":"https://github.com/PRX/cms.prx.org/pull/471.patch","issue_url":"https://api.github.com/repos/PRX/cms.prx.org/issues/471","number":471,"state":"open","locked":false,"title":"Account creation","user":{"login":"pstjean","id":1444918,"node_id":"MDQ6VXNlcjE0NDQ5MTg=","avatar_url":"https://avatars0.githubusercontent.com/u/1444918?v=4","gravatar_id":"","url":"https://api.github.com/users/pstjean","html_url":"https://github.com/pstjean","followers_url":"https://api.github.com/users/pstjean/followers","following_url":"https://api.github.com/users/pstjean/following{/other_user}","gists_url":"https://api.github.com/users/pstjean/gists{/gist_id}","starred_url":"https://api.github.com/users/pstjean/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pstjean/subscriptions","organizations_url":"https://api.github.com/users/pstjean/orgs","repos_url":"https://api.github.com/users/pstjean/repos","events_url":"https://api.github.com/users/pstjean/events{/privacy}","received_events_url":"https://api.github.com/users/pstjean/received_events","type":"User","site_admin":false},"body":"Allow account creation, via the authorized account endpoint as well as through the authorized user endpoint","created_at":"2018-10-19T19:31:07Z","updated_at":"2018-10-26T15:57:26Z","closed_at":null,"merged_at":null,"merge_commit_sha":"99ea1ef346dfacb58e6513c393ffb8cda7287dd7","assignee":{"login":"pstjean","id":1444918,"node_id":"MDQ6VXNlcjE0NDQ5MTg=","avatar_url":"https://avatars0.githubusercontent.com/u/1444918?v=4","gravatar_id":"","url":"https://api.github.com/users/pstjean","html_url":"https://github.com/pstjean","followers_url":"https://api.github.com/users/pstjean/followers","following_url":"https://api.github.com/users/pstjean/following{/other_user}","gists_url":"https://api.github.com/users/pstjean/gists{/gist_id}","starred_url":"https://api.github.com/users/pstjean/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pstjean/subscriptions","organizations_url":"https://api.github.com/users/pstjean/orgs","repos_url":"https://api.github.com/users/pstjean/repos","events_url":"https://api.github.com/users/pstjean/events{/privacy}","received_events_url":"https://api.github.com/users/pstjean/received_events","type":"User","site_admin":false},"assignees":[{"login":"pstjean","id":1444918,"node_id":"MDQ6VXNlcjE0NDQ5MTg=","avatar_url":"https://avatars0.githubusercontent.com/u/1444918?v=4","gravatar_id":"","url":"https://api.github.com/users/pstjean","html_url":"https://github.com/pstjean","followers_url":"https://api.github.com/users/pstjean/followers","following_url":"https://api.github.com/users/pstjean/following{/other_user}","gists_url":"https://api.github.com/users/pstjean/gists{/gist_id}","starred_url":"https://api.github.com/users/pstjean/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pstjean/subscriptions","organizations_url":"https://api.github.com/users/pstjean/orgs","repos_url":"https://api.github.com/users/pstjean/repos","events_url":"https://api.github.com/users/pstjean/events{/privacy}","received_events_url":"https://api.github.com/users/pstjean/received_events","type":"User","site_admin":false}],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/PRX/cms.prx.org/pulls/471/commits","review_comments_url":"https://api.github.com/repos/PRX/cms.prx.org/pulls/471/comments","review_comment_url":"https://api.github.com/repos/PRX/cms.prx.org/pulls/comments{/number}","comments_url":"https://api.github.com/repos/PRX/cms.prx.org/issues/471/comments","statuses_url":"https://api.github.com/repos/PRX/cms.prx.org/statuses/492313a5dd45d12521047e495e8251747ded01cb","head":{"label":"PRX:feat/account_creation","ref":"feat/account_creation","sha":"492313a5dd45d12521047e495e8251747ded01cb","user":{"login":"PRX","id":160453,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE2MDQ1Mw==","avatar_url":"https://avatars3.githubusercontent.com/u/160453?v=4","gravatar_id":"","url":"https://api.github.com/users/PRX","html_url":"https://github.com/PRX","followers_url":"https://api.github.com/users/PRX/followers","following_url":"https://api.github.com/users/PRX/following{/other_user}","gists_url":"https://api.github.com/users/PRX/gists{/gist_id}","starred_url":"https://api.github.com/users/PRX/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PRX/subscriptions","organizations_url":"https://api.github.com/users/PRX/orgs","repos_url":"https://api.github.com/users/PRX/repos","events_url":"https://api.github.com/users/PRX/events{/privacy}","received_events_url":"https://api.github.com/users/PRX/received_events","type":"Organization","site_admin":false},"repo":{"id":14878369,"node_id":"MDEwOlJlcG9zaXRvcnkxNDg3ODM2OQ==","name":"cms.prx.org","full_name":"PRX/cms.prx.org","private":false,"owner":{"login":"PRX","id":160453,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE2MDQ1Mw==","avatar_url":"https://avatars3.githubusercontent.com/u/160453?v=4","gravatar_id":"","url":"https://api.github.com/users/PRX","html_url":"https://github.com/PRX","followers_url":"https://api.github.com/users/PRX/followers","following_url":"https://api.github.com/users/PRX/following{/other_user}","gists_url":"https://api.github.com/users/PRX/gists{/gist_id}","starred_url":"https://api.github.com/users/PRX/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PRX/subscriptions","organizations_url":"https://api.github.com/users/PRX/orgs","repos_url":"https://api.github.com/users/PRX/repos","events_url":"https://api.github.com/users/PRX/events{/privacy}","received_events_url":"https://api.github.com/users/PRX/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/PRX/cms.prx.org","description":"CMS API for PRX","fork":false,"url":"https://api.github.com/repos/PRX/cms.prx.org","forks_url":"https://api.github.com/repos/PRX/cms.prx.org/forks","keys_url":"https://api.github.com/repos/PRX/cms.prx.org/keys{/key_id}","collaborators_url":"https://api.github.com/repos/PRX/cms.prx.org/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/PRX/cms.prx.org/teams","hooks_url":"https://api.github.com/repos/PRX/cms.prx.org/hooks","issue_events_url":"https://api.github.com/repos/PRX/cms.prx.org/issues/events{/number}","events_url":"https://api.github.com/repos/PRX/cms.prx.org/events","assignees_url":"https://api.github.com/repos/PRX/cms.prx.org/assignees{/user}","branches_url":"https://api.github.com/repos/PRX/cms.prx.org/branches{/branch}","tags_url":"https://api.github.com/repos/PRX/cms.prx.org/tags","blobs_url":"https://api.github.com/repos/PRX/cms.prx.org/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/PRX/cms.prx.org/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/PRX/cms.prx.org/git/refs{/sha}","trees_url":"https://api.github.com/repos/PRX/cms.prx.org/git/trees{/sha}","statuses_url":"https://api.github.com/repos/PRX/cms.prx.org/statuses/{sha}","languages_url":"https://api.github.com/repos/PRX/cms.prx.org/languages","stargazers_url":"https://api.github.com/repos/PRX/cms.prx.org/stargazers","contributors_url":"https://api.github.com/repos/PRX/cms.prx.org/contributors","subscribers_url":"https://api.github.com/repos/PRX/cms.prx.org/subscribers","subscription_url":"https://api.github.com/repos/PRX/cms.prx.org/subscription","commits_url":"https://api.github.com/repos/PRX/cms.prx.org/commits{/sha}","git_commits_url":"https://api.github.com/repos/PRX/cms.prx.org/git/commits{/sha}","comments_url":"https://api.github.com/repos/PRX/cms.prx.org/comments{/number}","issue_comment_url":"https://api.github.com/repos/PRX/cms.prx.org/issues/comments{/number}","contents_url":"https://api.github.com/repos/PRX/cms.prx.org/contents/{+path}","compare_url":"https://api.github.com/repos/PRX/cms.prx.org/compare/{base}...{head}","merges_url":"https://api.github.com/repos/PRX/cms.prx.org/merges","archive_url":"https://api.github.com/repos/PRX/cms.prx.org/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/PRX/cms.prx.org/downloads","issues_url":"https://api.github.com/repos/PRX/cms.prx.org/issues{/number}","pulls_url":"https://api.github.com/repos/PRX/cms.prx.org/pulls{/number}","milestones_url":"https://api.github.com/repos/PRX/cms.prx.org/milestones{/number}","notifications_url":"https://api.github.com/repos/PRX/cms.prx.org/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/PRX/cms.prx.org/labels{/name}","releases_url":"https://api.github.com/repos/PRX/cms.prx.org/releases{/id}","deployments_url":"https://api.github.com/repos/PRX/cms.prx.org/deployments","created_at":"2013-12-02T23:48:10Z","updated_at":"2018-10-25T17:34:42Z","pushed_at":"2018-10-26T15:56:59Z","git_url":"git://github.com/PRX/cms.prx.org.git","ssh_url":"git@github.com:PRX/cms.prx.org.git","clone_url":"https://github.com/PRX/cms.prx.org.git","svn_url":"https://github.com/PRX/cms.prx.org","homepage":"https://cms.prx.org","size":2574,"stargazers_count":3,"watchers_count":3,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"archived":false,"open_issues_count":43,"license":{"key":"agpl-3.0","name":"GNU Affero General Public License v3.0","spdx_id":"AGPL-3.0","url":"https://api.github.com/licenses/agpl-3.0","node_id":"MDc6TGljZW5zZTE="},"forks":3,"open_issues":43,"watchers":3,"default_branch":"master"}},"base":{"label":"PRX:master","ref":"master","sha":"92cc07aecce5db02b1f863ace02bb45acbb927fb","user":{"login":"PRX","id":160453,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE2MDQ1Mw==","avatar_url":"https://avatars3.githubusercontent.com/u/160453?v=4","gravatar_id":"","url":"https://api.github.com/users/PRX","html_url":"https://github.com/PRX","followers_url":"https://api.github.com/users/PRX/followers","following_url":"https://api.github.com/users/PRX/following{/other_user}","gists_url":"https://api.github.com/users/PRX/gists{/gist_id}","starred_url":"https://api.github.com/users/PRX/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PRX/subscriptions","organizations_url":"https://api.github.com/users/PRX/orgs","repos_url":"https://api.github.com/users/PRX/repos","events_url":"https://api.github.com/users/PRX/events{/privacy}","received_events_url":"https://api.github.com/users/PRX/received_events","type":"Organization","site_admin":false},"repo":{"id":14878369,"node_id":"MDEwOlJlcG9zaXRvcnkxNDg3ODM2OQ==","name":"cms.prx.org","full_name":"PRX/cms.prx.org","private":false,"owner":{"login":"PRX","id":160453,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE2MDQ1Mw==","avatar_url":"https://avatars3.githubusercontent.com/u/160453?v=4","gravatar_id":"","url":"https://api.github.com/users/PRX","html_url":"https://github.com/PRX","followers_url":"https://api.github.com/users/PRX/followers","following_url":"https://api.github.com/users/PRX/following{/other_user}","gists_url":"https://api.github.com/users/PRX/gists{/gist_id}","starred_url":"https://api.github.com/users/PRX/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PRX/subscriptions","organizations_url":"https://api.github.com/users/PRX/orgs","repos_url":"https://api.github.com/users/PRX/repos","events_url":"https://api.github.com/users/PRX/events{/privacy}","received_events_url":"https://api.github.com/users/PRX/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/PRX/cms.prx.org","description":"CMS API for PRX","fork":false,"url":"https://api.github.com/repos/PRX/cms.prx.org","forks_url":"https://api.github.com/repos/PRX/cms.prx.org/forks","keys_url":"https://api.github.com/repos/PRX/cms.prx.org/keys{/key_id}","collaborators_url":"https://api.github.com/repos/PRX/cms.prx.org/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/PRX/cms.prx.org/teams","hooks_url":"https://api.github.com/repos/PRX/cms.prx.org/hooks","issue_events_url":"https://api.github.com/repos/PRX/cms.prx.org/issues/events{/number}","events_url":"https://api.github.com/repos/PRX/cms.prx.org/events","assignees_url":"https://api.github.com/repos/PRX/cms.prx.org/assignees{/user}","branches_url":"https://api.github.com/repos/PRX/cms.prx.org/branches{/branch}","tags_url":"https://api.github.com/repos/PRX/cms.prx.org/tags","blobs_url":"https://api.github.com/repos/PRX/cms.prx.org/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/PRX/cms.prx.org/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/PRX/cms.prx.org/git/refs{/sha}","trees_url":"https://api.github.com/repos/PRX/cms.prx.org/git/trees{/sha}","statuses_url":"https://api.github.com/repos/PRX/cms.prx.org/statuses/{sha}","languages_url":"https://api.github.com/repos/PRX/cms.prx.org/languages","stargazers_url":"https://api.github.com/repos/PRX/cms.prx.org/stargazers","contributors_url":"https://api.github.com/repos/PRX/cms.prx.org/contributors","subscribers_url":"https://api.github.com/repos/PRX/cms.prx.org/subscribers","subscription_url":"https://api.github.com/repos/PRX/cms.prx.org/subscription","commits_url":"https://api.github.com/repos/PRX/cms.prx.org/commits{/sha}","git_commits_url":"https://api.github.com/repos/PRX/cms.prx.org/git/commits{/sha}","comments_url":"https://api.github.com/repos/PRX/cms.prx.org/comments{/number}","issue_comment_url":"https://api.github.com/repos/PRX/cms.prx.org/issues/comments{/number}","contents_url":"https://api.github.com/repos/PRX/cms.prx.org/contents/{+path}","compare_url":"https://api.github.com/repos/PRX/cms.prx.org/compare/{base}...{head}","merges_url":"https://api.github.com/repos/PRX/cms.prx.org/merges","archive_url":"https://api.github.com/repos/PRX/cms.prx.org/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/PRX/cms.prx.org/downloads","issues_url":"https://api.github.com/repos/PRX/cms.prx.org/issues{/number}","pulls_url":"https://api.github.com/repos/PRX/cms.prx.org/pulls{/number}","milestones_url":"https://api.github.com/repos/PRX/cms.prx.org/milestones{/number}","notifications_url":"https://api.github.com/repos/PRX/cms.prx.org/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/PRX/cms.prx.org/labels{/name}","releases_url":"https://api.github.com/repos/PRX/cms.prx.org/releases{/id}","deployments_url":"https://api.github.com/repos/PRX/cms.prx.org/deployments","created_at":"2013-12-02T23:48:10Z","updated_at":"2018-10-25T17:34:42Z","pushed_at":"2018-10-26T15:56:59Z","git_url":"git://github.com/PRX/cms.prx.org.git","ssh_url":"git@github.com:PRX/cms.prx.org.git","clone_url":"https://github.com/PRX/cms.prx.org.git","svn_url":"https://github.com/PRX/cms.prx.org","homepage":"https://cms.prx.org","size":2574,"stargazers_count":3,"watchers_count":3,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"archived":false,"open_issues_count":43,"license":{"key":"agpl-3.0","name":"GNU Affero General Public License v3.0","spdx_id":"AGPL-3.0","url":"https://api.github.com/licenses/agpl-3.0","node_id":"MDc6TGljZW5zZTE="},"forks":3,"open_issues":43,"watchers":3,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/PRX/cms.prx.org/pulls/471"},"html":{"href":"https://github.com/PRX/cms.prx.org/pull/471"},"issue":{"href":"https://api.github.com/repos/PRX/cms.prx.org/issues/471"},"comments":{"href":"https://api.github.com/repos/PRX/cms.prx.org/issues/471/comments"},"review_comments":{"href":"https://api.github.com/repos/PRX/cms.prx.org/pulls/471/comments"},"review_comment":{"href":"https://api.github.com/repos/PRX/cms.prx.org/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/PRX/cms.prx.org/pulls/471/commits"},"statuses":{"href":"https://api.github.com/repos/PRX/cms.prx.org/statuses/492313a5dd45d12521047e495e8251747ded01cb"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"houndci-bot"}}