{"action":"created","comment":{"url":"https://api.github.com/repos/paradise-valley/booking-system/pulls/comments/77445985","id":77445985,"diff_hunk":"@@ -0,0 +1,56 @@\n+require \"rails_helper\"\n+\n+describe \"Admin updates user\" do\n+  scenario \"is redirected away if not signed in\" do\n+    user = create(:user)\n+\n+    visit edit_admin_user_path(user)\n+\n+    expect(current_path).to eq(new_user_session_path)\n+  end\n+\n+  scenario \"is redirected away if not an admin\" do\n+    user = create(:user)\n+\n+    sign_in create(:user)\n+    visit edit_admin_user_path(user)\n+\n+    expect(current_path).to eq(root_path)\n+  end\n+\n+  scenario \"successfully\" do\n+    user = create(:user)\n+\n+    sign_in create(:admin)\n+    visit edit_admin_user_path(user)\n+    fill_in \"user_email\", with: \"updated@example.com\"\n+    click_on \"Update user\"\n+\n+    expect(page).to have_content(\"User was successfully updated\")\n+  end\n+\n+  scenario \"with invalid data\" do","path":"spec/features/admin_updates_user_spec.rb","position":32,"original_position":32,"commit_id":"5a0050e3074dfaf5d96dfc6f7e4e5f8892173383","original_commit_id":"5a0050e3074dfaf5d96dfc6f7e4e5f8892173383","user":{"login":"houndci-bot","id":6697940,"avatar_url":"https://avatars.githubusercontent.com/u/6697940?v=3","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":"Prefer single-quoted strings when you don't need string interpolation or special symbols.","created_at":"2016-09-04T02:55:48Z","updated_at":"2016-09-04T02:55:48Z","html_url":"https://github.com/paradise-valley/booking-system/pull/7#discussion_r77445985","pull_request_url":"https://api.github.com/repos/paradise-valley/booking-system/pulls/7","_links":{"self":{"href":"https://api.github.com/repos/paradise-valley/booking-system/pulls/comments/77445985"},"html":{"href":"https://github.com/paradise-valley/booking-system/pull/7#discussion_r77445985"},"pull_request":{"href":"https://api.github.com/repos/paradise-valley/booking-system/pulls/7"}}},"pull_request":{"url":"https://api.github.com/repos/paradise-valley/booking-system/pulls/7","id":83911915,"html_url":"https://github.com/paradise-valley/booking-system/pull/7","diff_url":"https://github.com/paradise-valley/booking-system/pull/7.diff","patch_url":"https://github.com/paradise-valley/booking-system/pull/7.patch","issue_url":"https://api.github.com/repos/paradise-valley/booking-system/issues/7","number":7,"state":"open","locked":false,"title":"Allow admins to update users","user":{"login":"kyledaugherty","id":4085836,"avatar_url":"https://avatars.githubusercontent.com/u/4085836?v=3","gravatar_id":"","url":"https://api.github.com/users/kyledaugherty","html_url":"https://github.com/kyledaugherty","followers_url":"https://api.github.com/users/kyledaugherty/followers","following_url":"https://api.github.com/users/kyledaugherty/following{/other_user}","gists_url":"https://api.github.com/users/kyledaugherty/gists{/gist_id}","starred_url":"https://api.github.com/users/kyledaugherty/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kyledaugherty/subscriptions","organizations_url":"https://api.github.com/users/kyledaugherty/orgs","repos_url":"https://api.github.com/users/kyledaugherty/repos","events_url":"https://api.github.com/users/kyledaugherty/events{/privacy}","received_events_url":"https://api.github.com/users/kyledaugherty/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-09-04T02:55:41Z","updated_at":"2016-09-04T02:55:49Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d1c3f3881c06e248d45657b84ceb6e12c4faaaae","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/paradise-valley/booking-system/pulls/7/commits","review_comments_url":"https://api.github.com/repos/paradise-valley/booking-system/pulls/7/comments","review_comment_url":"https://api.github.com/repos/paradise-valley/booking-system/pulls/comments{/number}","comments_url":"https://api.github.com/repos/paradise-valley/booking-system/issues/7/comments","statuses_url":"https://api.github.com/repos/paradise-valley/booking-system/statuses/5a0050e3074dfaf5d96dfc6f7e4e5f8892173383","head":{"label":"paradise-valley:kid-edit-users","ref":"kid-edit-users","sha":"5a0050e3074dfaf5d96dfc6f7e4e5f8892173383","user":{"login":"paradise-valley","id":20468671,"avatar_url":"https://avatars.githubusercontent.com/u/20468671?v=3","gravatar_id":"","url":"https://api.github.com/users/paradise-valley","html_url":"https://github.com/paradise-valley","followers_url":"https://api.github.com/users/paradise-valley/followers","following_url":"https://api.github.com/users/paradise-valley/following{/other_user}","gists_url":"https://api.github.com/users/paradise-valley/gists{/gist_id}","starred_url":"https://api.github.com/users/paradise-valley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paradise-valley/subscriptions","organizations_url":"https://api.github.com/users/paradise-valley/orgs","repos_url":"https://api.github.com/users/paradise-valley/repos","events_url":"https://api.github.com/users/paradise-valley/events{/privacy}","received_events_url":"https://api.github.com/users/paradise-valley/received_events","type":"Organization","site_admin":false},"repo":{"id":66795115,"name":"booking-system","full_name":"paradise-valley/booking-system","owner":{"login":"paradise-valley","id":20468671,"avatar_url":"https://avatars.githubusercontent.com/u/20468671?v=3","gravatar_id":"","url":"https://api.github.com/users/paradise-valley","html_url":"https://github.com/paradise-valley","followers_url":"https://api.github.com/users/paradise-valley/followers","following_url":"https://api.github.com/users/paradise-valley/following{/other_user}","gists_url":"https://api.github.com/users/paradise-valley/gists{/gist_id}","starred_url":"https://api.github.com/users/paradise-valley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paradise-valley/subscriptions","organizations_url":"https://api.github.com/users/paradise-valley/orgs","repos_url":"https://api.github.com/users/paradise-valley/repos","events_url":"https://api.github.com/users/paradise-valley/events{/privacy}","received_events_url":"https://api.github.com/users/paradise-valley/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/paradise-valley/booking-system","description":null,"fork":false,"url":"https://api.github.com/repos/paradise-valley/booking-system","forks_url":"https://api.github.com/repos/paradise-valley/booking-system/forks","keys_url":"https://api.github.com/repos/paradise-valley/booking-system/keys{/key_id}","collaborators_url":"https://api.github.com/repos/paradise-valley/booking-system/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/paradise-valley/booking-system/teams","hooks_url":"https://api.github.com/repos/paradise-valley/booking-system/hooks","issue_events_url":"https://api.github.com/repos/paradise-valley/booking-system/issues/events{/number}","events_url":"https://api.github.com/repos/paradise-valley/booking-system/events","assignees_url":"https://api.github.com/repos/paradise-valley/booking-system/assignees{/user}","branches_url":"https://api.github.com/repos/paradise-valley/booking-system/branches{/branch}","tags_url":"https://api.github.com/repos/paradise-valley/booking-system/tags","blobs_url":"https://api.github.com/repos/paradise-valley/booking-system/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/paradise-valley/booking-system/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/paradise-valley/booking-system/git/refs{/sha}","trees_url":"https://api.github.com/repos/paradise-valley/booking-system/git/trees{/sha}","statuses_url":"https://api.github.com/repos/paradise-valley/booking-system/statuses/{sha}","languages_url":"https://api.github.com/repos/paradise-valley/booking-system/languages","stargazers_url":"https://api.github.com/repos/paradise-valley/booking-system/stargazers","contributors_url":"https://api.github.com/repos/paradise-valley/booking-system/contributors","subscribers_url":"https://api.github.com/repos/paradise-valley/booking-system/subscribers","subscription_url":"https://api.github.com/repos/paradise-valley/booking-system/subscription","commits_url":"https://api.github.com/repos/paradise-valley/booking-system/commits{/sha}","git_commits_url":"https://api.github.com/repos/paradise-valley/booking-system/git/commits{/sha}","comments_url":"https://api.github.com/repos/paradise-valley/booking-system/comments{/number}","issue_comment_url":"https://api.github.com/repos/paradise-valley/booking-system/issues/comments{/number}","contents_url":"https://api.github.com/repos/paradise-valley/booking-system/contents/{+path}","compare_url":"https://api.github.com/repos/paradise-valley/booking-system/compare/{base}...{head}","merges_url":"https://api.github.com/repos/paradise-valley/booking-system/merges","archive_url":"https://api.github.com/repos/paradise-valley/booking-system/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/paradise-valley/booking-system/downloads","issues_url":"https://api.github.com/repos/paradise-valley/booking-system/issues{/number}","pulls_url":"https://api.github.com/repos/paradise-valley/booking-system/pulls{/number}","milestones_url":"https://api.github.com/repos/paradise-valley/booking-system/milestones{/number}","notifications_url":"https://api.github.com/repos/paradise-valley/booking-system/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/paradise-valley/booking-system/labels{/name}","releases_url":"https://api.github.com/repos/paradise-valley/booking-system/releases{/id}","deployments_url":"https://api.github.com/repos/paradise-valley/booking-system/deployments","created_at":"2016-08-28T23:01:05Z","updated_at":"2016-08-28T23:03:36Z","pushed_at":"2016-09-04T02:55:41Z","git_url":"git://github.com/paradise-valley/booking-system.git","ssh_url":"git@github.com:paradise-valley/booking-system.git","clone_url":"https://github.com/paradise-valley/booking-system.git","svn_url":"https://github.com/paradise-valley/booking-system","homepage":null,"size":73,"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":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"paradise-valley:master","ref":"master","sha":"016c503afe04b7e842f3fb1a3278bf1040caebfd","user":{"login":"paradise-valley","id":20468671,"avatar_url":"https://avatars.githubusercontent.com/u/20468671?v=3","gravatar_id":"","url":"https://api.github.com/users/paradise-valley","html_url":"https://github.com/paradise-valley","followers_url":"https://api.github.com/users/paradise-valley/followers","following_url":"https://api.github.com/users/paradise-valley/following{/other_user}","gists_url":"https://api.github.com/users/paradise-valley/gists{/gist_id}","starred_url":"https://api.github.com/users/paradise-valley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paradise-valley/subscriptions","organizations_url":"https://api.github.com/users/paradise-valley/orgs","repos_url":"https://api.github.com/users/paradise-valley/repos","events_url":"https://api.github.com/users/paradise-valley/events{/privacy}","received_events_url":"https://api.github.com/users/paradise-valley/received_events","type":"Organization","site_admin":false},"repo":{"id":66795115,"name":"booking-system","full_name":"paradise-valley/booking-system","owner":{"login":"paradise-valley","id":20468671,"avatar_url":"https://avatars.githubusercontent.com/u/20468671?v=3","gravatar_id":"","url":"https://api.github.com/users/paradise-valley","html_url":"https://github.com/paradise-valley","followers_url":"https://api.github.com/users/paradise-valley/followers","following_url":"https://api.github.com/users/paradise-valley/following{/other_user}","gists_url":"https://api.github.com/users/paradise-valley/gists{/gist_id}","starred_url":"https://api.github.com/users/paradise-valley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paradise-valley/subscriptions","organizations_url":"https://api.github.com/users/paradise-valley/orgs","repos_url":"https://api.github.com/users/paradise-valley/repos","events_url":"https://api.github.com/users/paradise-valley/events{/privacy}","received_events_url":"https://api.github.com/users/paradise-valley/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/paradise-valley/booking-system","description":null,"fork":false,"url":"https://api.github.com/repos/paradise-valley/booking-system","forks_url":"https://api.github.com/repos/paradise-valley/booking-system/forks","keys_url":"https://api.github.com/repos/paradise-valley/booking-system/keys{/key_id}","collaborators_url":"https://api.github.com/repos/paradise-valley/booking-system/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/paradise-valley/booking-system/teams","hooks_url":"https://api.github.com/repos/paradise-valley/booking-system/hooks","issue_events_url":"https://api.github.com/repos/paradise-valley/booking-system/issues/events{/number}","events_url":"https://api.github.com/repos/paradise-valley/booking-system/events","assignees_url":"https://api.github.com/repos/paradise-valley/booking-system/assignees{/user}","branches_url":"https://api.github.com/repos/paradise-valley/booking-system/branches{/branch}","tags_url":"https://api.github.com/repos/paradise-valley/booking-system/tags","blobs_url":"https://api.github.com/repos/paradise-valley/booking-system/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/paradise-valley/booking-system/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/paradise-valley/booking-system/git/refs{/sha}","trees_url":"https://api.github.com/repos/paradise-valley/booking-system/git/trees{/sha}","statuses_url":"https://api.github.com/repos/paradise-valley/booking-system/statuses/{sha}","languages_url":"https://api.github.com/repos/paradise-valley/booking-system/languages","stargazers_url":"https://api.github.com/repos/paradise-valley/booking-system/stargazers","contributors_url":"https://api.github.com/repos/paradise-valley/booking-system/contributors","subscribers_url":"https://api.github.com/repos/paradise-valley/booking-system/subscribers","subscription_url":"https://api.github.com/repos/paradise-valley/booking-system/subscription","commits_url":"https://api.github.com/repos/paradise-valley/booking-system/commits{/sha}","git_commits_url":"https://api.github.com/repos/paradise-valley/booking-system/git/commits{/sha}","comments_url":"https://api.github.com/repos/paradise-valley/booking-system/comments{/number}","issue_comment_url":"https://api.github.com/repos/paradise-valley/booking-system/issues/comments{/number}","contents_url":"https://api.github.com/repos/paradise-valley/booking-system/contents/{+path}","compare_url":"https://api.github.com/repos/paradise-valley/booking-system/compare/{base}...{head}","merges_url":"https://api.github.com/repos/paradise-valley/booking-system/merges","archive_url":"https://api.github.com/repos/paradise-valley/booking-system/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/paradise-valley/booking-system/downloads","issues_url":"https://api.github.com/repos/paradise-valley/booking-system/issues{/number}","pulls_url":"https://api.github.com/repos/paradise-valley/booking-system/pulls{/number}","milestones_url":"https://api.github.com/repos/paradise-valley/booking-system/milestones{/number}","notifications_url":"https://api.github.com/repos/paradise-valley/booking-system/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/paradise-valley/booking-system/labels{/name}","releases_url":"https://api.github.com/repos/paradise-valley/booking-system/releases{/id}","deployments_url":"https://api.github.com/repos/paradise-valley/booking-system/deployments","created_at":"2016-08-28T23:01:05Z","updated_at":"2016-08-28T23:03:36Z","pushed_at":"2016-09-04T02:55:41Z","git_url":"git://github.com/paradise-valley/booking-system.git","ssh_url":"git@github.com:paradise-valley/booking-system.git","clone_url":"https://github.com/paradise-valley/booking-system.git","svn_url":"https://github.com/paradise-valley/booking-system","homepage":null,"size":73,"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":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/paradise-valley/booking-system/pulls/7"},"html":{"href":"https://github.com/paradise-valley/booking-system/pull/7"},"issue":{"href":"https://api.github.com/repos/paradise-valley/booking-system/issues/7"},"comments":{"href":"https://api.github.com/repos/paradise-valley/booking-system/issues/7/comments"},"review_comments":{"href":"https://api.github.com/repos/paradise-valley/booking-system/pulls/7/comments"},"review_comment":{"href":"https://api.github.com/repos/paradise-valley/booking-system/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/paradise-valley/booking-system/pulls/7/commits"},"statuses":{"href":"https://api.github.com/repos/paradise-valley/booking-system/statuses/5a0050e3074dfaf5d96dfc6f7e4e5f8892173383"}}}}
{"actor":{"display_login":"houndci-bot"}}