{"action":"created","comment":{"url":"https://api.github.com/repos/namely/connect/pulls/comments/65446588","id":65446588,"diff_hunk":"@@ -0,0 +1,44 @@\n+require \"rails_helper\"\n+\n+feature \"User views list of users\" do\n+  scenario \"shows list of users\" do\n+    installation = create(:installation, subdomain: \"test\")\n+    users = create_list(:user, 3, installation: installation)\n+\n+    visit dashboard_path(as: users[0])\n+    click_link t(\"dashboards.show.view_all_users\")\n+\n+    expect(page).to have_button('Save')\n+\n+    expect(find(\"#user_radio_#{users[0].id}\")).to be_checked\n+    expect(find(\"#user_radio_#{users[1].id}\")).to_not be_checked\n+    expect(find(\"#user_radio_#{users[2].id}\")).to_not be_checked\n+  end\n+\n+  scenario \"change owner of installations users\" do\n+    installation = create(:installation, subdomain: \"test\")\n+    users = create_list(:user, 3, installation: installation)\n+\n+    visit dashboard_path(as: users[0])\n+    click_link t(\"dashboards.show.view_all_users\")\n+\n+    find(\"#user_radio_#{users[1].id}\").set(true)\n+\n+    expect(find(\"#user_radio_#{users[0].id}\")).to_not be_checked\n+    expect(find(\"#user_radio_#{users[1].id}\")).to be_checked\n+    expect(find(\"#user_radio_#{users[2].id}\")).to_not be_checked\n+\n+    click_button \"Save\"\n+\n+    visit dashboard_path(as: users[0])\n+    click_link t(\"dashboards.show.view_all_users\")\n+\n+    expect(find(\"#user_radio_#{users[0].id}\")).to_not be_checked\n+    expect(find(\"#user_radio_#{users[1].id}\")).to be_checked\n+    expect(find(\"#user_radio_#{users[2].id}\")).to_not be_checked\n+  end\n+\n+\n+\n+\n+end","path":"spec/features/user_views_list_of_users_and_owners_spec.rb","position":44,"original_position":44,"commit_id":"e245f9d86bc0cecf282cebe0c5aad9c4edcbe8d1","original_commit_id":"e245f9d86bc0cecf282cebe0c5aad9c4edcbe8d1","user":{"login":"bobbytables","id":521627,"avatar_url":"https://avatars.githubusercontent.com/u/521627?v=3","gravatar_id":"","url":"https://api.github.com/users/bobbytables","html_url":"https://github.com/bobbytables","followers_url":"https://api.github.com/users/bobbytables/followers","following_url":"https://api.github.com/users/bobbytables/following{/other_user}","gists_url":"https://api.github.com/users/bobbytables/gists{/gist_id}","starred_url":"https://api.github.com/users/bobbytables/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bobbytables/subscriptions","organizations_url":"https://api.github.com/users/bobbytables/orgs","repos_url":"https://api.github.com/users/bobbytables/repos","events_url":"https://api.github.com/users/bobbytables/events{/privacy}","received_events_url":"https://api.github.com/users/bobbytables/received_events","type":"User","site_admin":false},"body":"Formatting :)","created_at":"2016-06-01T21:30:20Z","updated_at":"2016-06-01T21:30:20Z","html_url":"https://github.com/namely/connect/pull/313#discussion_r65446588","pull_request_url":"https://api.github.com/repos/namely/connect/pulls/313","_links":{"self":{"href":"https://api.github.com/repos/namely/connect/pulls/comments/65446588"},"html":{"href":"https://github.com/namely/connect/pull/313#discussion_r65446588"},"pull_request":{"href":"https://api.github.com/repos/namely/connect/pulls/313"}}},"pull_request":{"url":"https://api.github.com/repos/namely/connect/pulls/313","id":72028009,"html_url":"https://github.com/namely/connect/pull/313","diff_url":"https://github.com/namely/connect/pull/313.diff","patch_url":"https://github.com/namely/connect/pull/313.patch","issue_url":"https://api.github.com/repos/namely/connect/issues/313","number":313,"state":"open","locked":false,"title":"Bellis use owner id for owner","user":{"login":"ellisbenjamin","id":7461931,"avatar_url":"https://avatars.githubusercontent.com/u/7461931?v=3","gravatar_id":"","url":"https://api.github.com/users/ellisbenjamin","html_url":"https://github.com/ellisbenjamin","followers_url":"https://api.github.com/users/ellisbenjamin/followers","following_url":"https://api.github.com/users/ellisbenjamin/following{/other_user}","gists_url":"https://api.github.com/users/ellisbenjamin/gists{/gist_id}","starred_url":"https://api.github.com/users/ellisbenjamin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ellisbenjamin/subscriptions","organizations_url":"https://api.github.com/users/ellisbenjamin/orgs","repos_url":"https://api.github.com/users/ellisbenjamin/repos","events_url":"https://api.github.com/users/ellisbenjamin/events{/privacy}","received_events_url":"https://api.github.com/users/ellisbenjamin/received_events","type":"User","site_admin":false},"body":"As a user of namely-connect I should be able to change the owner of the installation via the view all users page.\r\n\r\nhttps://namely.atlassian.net/browse/CORE-302\r\n","created_at":"2016-05-31T14:42:55Z","updated_at":"2016-06-01T21:30:20Z","closed_at":null,"merged_at":null,"merge_commit_sha":"31e74c5b8fde7781a6ac7810b5506bf0b7b0ce57","assignee":{"login":"ellisbenjamin","id":7461931,"avatar_url":"https://avatars.githubusercontent.com/u/7461931?v=3","gravatar_id":"","url":"https://api.github.com/users/ellisbenjamin","html_url":"https://github.com/ellisbenjamin","followers_url":"https://api.github.com/users/ellisbenjamin/followers","following_url":"https://api.github.com/users/ellisbenjamin/following{/other_user}","gists_url":"https://api.github.com/users/ellisbenjamin/gists{/gist_id}","starred_url":"https://api.github.com/users/ellisbenjamin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ellisbenjamin/subscriptions","organizations_url":"https://api.github.com/users/ellisbenjamin/orgs","repos_url":"https://api.github.com/users/ellisbenjamin/repos","events_url":"https://api.github.com/users/ellisbenjamin/events{/privacy}","received_events_url":"https://api.github.com/users/ellisbenjamin/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/namely/connect/pulls/313/commits","review_comments_url":"https://api.github.com/repos/namely/connect/pulls/313/comments","review_comment_url":"https://api.github.com/repos/namely/connect/pulls/comments{/number}","comments_url":"https://api.github.com/repos/namely/connect/issues/313/comments","statuses_url":"https://api.github.com/repos/namely/connect/statuses/e245f9d86bc0cecf282cebe0c5aad9c4edcbe8d1","head":{"label":"namely:bellis-use-owner-id-for-owner","ref":"bellis-use-owner-id-for-owner","sha":"e245f9d86bc0cecf282cebe0c5aad9c4edcbe8d1","user":{"login":"namely","id":1004321,"avatar_url":"https://avatars.githubusercontent.com/u/1004321?v=3","gravatar_id":"","url":"https://api.github.com/users/namely","html_url":"https://github.com/namely","followers_url":"https://api.github.com/users/namely/followers","following_url":"https://api.github.com/users/namely/following{/other_user}","gists_url":"https://api.github.com/users/namely/gists{/gist_id}","starred_url":"https://api.github.com/users/namely/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/namely/subscriptions","organizations_url":"https://api.github.com/users/namely/orgs","repos_url":"https://api.github.com/users/namely/repos","events_url":"https://api.github.com/users/namely/events{/privacy}","received_events_url":"https://api.github.com/users/namely/received_events","type":"Organization","site_admin":false},"repo":{"id":26101808,"name":"connect","full_name":"namely/connect","owner":{"login":"namely","id":1004321,"avatar_url":"https://avatars.githubusercontent.com/u/1004321?v=3","gravatar_id":"","url":"https://api.github.com/users/namely","html_url":"https://github.com/namely","followers_url":"https://api.github.com/users/namely/followers","following_url":"https://api.github.com/users/namely/following{/other_user}","gists_url":"https://api.github.com/users/namely/gists{/gist_id}","starred_url":"https://api.github.com/users/namely/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/namely/subscriptions","organizations_url":"https://api.github.com/users/namely/orgs","repos_url":"https://api.github.com/users/namely/repos","events_url":"https://api.github.com/users/namely/events{/privacy}","received_events_url":"https://api.github.com/users/namely/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/namely/connect","description":"Namely Connect – Integrations with the Namely HRIS System.","fork":false,"url":"https://api.github.com/repos/namely/connect","forks_url":"https://api.github.com/repos/namely/connect/forks","keys_url":"https://api.github.com/repos/namely/connect/keys{/key_id}","collaborators_url":"https://api.github.com/repos/namely/connect/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/namely/connect/teams","hooks_url":"https://api.github.com/repos/namely/connect/hooks","issue_events_url":"https://api.github.com/repos/namely/connect/issues/events{/number}","events_url":"https://api.github.com/repos/namely/connect/events","assignees_url":"https://api.github.com/repos/namely/connect/assignees{/user}","branches_url":"https://api.github.com/repos/namely/connect/branches{/branch}","tags_url":"https://api.github.com/repos/namely/connect/tags","blobs_url":"https://api.github.com/repos/namely/connect/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/namely/connect/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/namely/connect/git/refs{/sha}","trees_url":"https://api.github.com/repos/namely/connect/git/trees{/sha}","statuses_url":"https://api.github.com/repos/namely/connect/statuses/{sha}","languages_url":"https://api.github.com/repos/namely/connect/languages","stargazers_url":"https://api.github.com/repos/namely/connect/stargazers","contributors_url":"https://api.github.com/repos/namely/connect/contributors","subscribers_url":"https://api.github.com/repos/namely/connect/subscribers","subscription_url":"https://api.github.com/repos/namely/connect/subscription","commits_url":"https://api.github.com/repos/namely/connect/commits{/sha}","git_commits_url":"https://api.github.com/repos/namely/connect/git/commits{/sha}","comments_url":"https://api.github.com/repos/namely/connect/comments{/number}","issue_comment_url":"https://api.github.com/repos/namely/connect/issues/comments{/number}","contents_url":"https://api.github.com/repos/namely/connect/contents/{+path}","compare_url":"https://api.github.com/repos/namely/connect/compare/{base}...{head}","merges_url":"https://api.github.com/repos/namely/connect/merges","archive_url":"https://api.github.com/repos/namely/connect/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/namely/connect/downloads","issues_url":"https://api.github.com/repos/namely/connect/issues{/number}","pulls_url":"https://api.github.com/repos/namely/connect/pulls{/number}","milestones_url":"https://api.github.com/repos/namely/connect/milestones{/number}","notifications_url":"https://api.github.com/repos/namely/connect/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/namely/connect/labels{/name}","releases_url":"https://api.github.com/repos/namely/connect/releases{/id}","deployments_url":"https://api.github.com/repos/namely/connect/deployments","created_at":"2014-11-03T03:10:16Z","updated_at":"2016-05-17T17:09:11Z","pushed_at":"2016-06-01T18:46:52Z","git_url":"git://github.com/namely/connect.git","ssh_url":"git@github.com:namely/connect.git","clone_url":"https://github.com/namely/connect.git","svn_url":"https://github.com/namely/connect","homepage":"","size":3317,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":5,"mirror_url":null,"open_issues_count":4,"forks":5,"open_issues":4,"watchers":0,"default_branch":"master"}},"base":{"label":"namely:master","ref":"master","sha":"d130b7a908ef13b74e930a3f6939f3eb8616f80e","user":{"login":"namely","id":1004321,"avatar_url":"https://avatars.githubusercontent.com/u/1004321?v=3","gravatar_id":"","url":"https://api.github.com/users/namely","html_url":"https://github.com/namely","followers_url":"https://api.github.com/users/namely/followers","following_url":"https://api.github.com/users/namely/following{/other_user}","gists_url":"https://api.github.com/users/namely/gists{/gist_id}","starred_url":"https://api.github.com/users/namely/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/namely/subscriptions","organizations_url":"https://api.github.com/users/namely/orgs","repos_url":"https://api.github.com/users/namely/repos","events_url":"https://api.github.com/users/namely/events{/privacy}","received_events_url":"https://api.github.com/users/namely/received_events","type":"Organization","site_admin":false},"repo":{"id":26101808,"name":"connect","full_name":"namely/connect","owner":{"login":"namely","id":1004321,"avatar_url":"https://avatars.githubusercontent.com/u/1004321?v=3","gravatar_id":"","url":"https://api.github.com/users/namely","html_url":"https://github.com/namely","followers_url":"https://api.github.com/users/namely/followers","following_url":"https://api.github.com/users/namely/following{/other_user}","gists_url":"https://api.github.com/users/namely/gists{/gist_id}","starred_url":"https://api.github.com/users/namely/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/namely/subscriptions","organizations_url":"https://api.github.com/users/namely/orgs","repos_url":"https://api.github.com/users/namely/repos","events_url":"https://api.github.com/users/namely/events{/privacy}","received_events_url":"https://api.github.com/users/namely/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/namely/connect","description":"Namely Connect – Integrations with the Namely HRIS System.","fork":false,"url":"https://api.github.com/repos/namely/connect","forks_url":"https://api.github.com/repos/namely/connect/forks","keys_url":"https://api.github.com/repos/namely/connect/keys{/key_id}","collaborators_url":"https://api.github.com/repos/namely/connect/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/namely/connect/teams","hooks_url":"https://api.github.com/repos/namely/connect/hooks","issue_events_url":"https://api.github.com/repos/namely/connect/issues/events{/number}","events_url":"https://api.github.com/repos/namely/connect/events","assignees_url":"https://api.github.com/repos/namely/connect/assignees{/user}","branches_url":"https://api.github.com/repos/namely/connect/branches{/branch}","tags_url":"https://api.github.com/repos/namely/connect/tags","blobs_url":"https://api.github.com/repos/namely/connect/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/namely/connect/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/namely/connect/git/refs{/sha}","trees_url":"https://api.github.com/repos/namely/connect/git/trees{/sha}","statuses_url":"https://api.github.com/repos/namely/connect/statuses/{sha}","languages_url":"https://api.github.com/repos/namely/connect/languages","stargazers_url":"https://api.github.com/repos/namely/connect/stargazers","contributors_url":"https://api.github.com/repos/namely/connect/contributors","subscribers_url":"https://api.github.com/repos/namely/connect/subscribers","subscription_url":"https://api.github.com/repos/namely/connect/subscription","commits_url":"https://api.github.com/repos/namely/connect/commits{/sha}","git_commits_url":"https://api.github.com/repos/namely/connect/git/commits{/sha}","comments_url":"https://api.github.com/repos/namely/connect/comments{/number}","issue_comment_url":"https://api.github.com/repos/namely/connect/issues/comments{/number}","contents_url":"https://api.github.com/repos/namely/connect/contents/{+path}","compare_url":"https://api.github.com/repos/namely/connect/compare/{base}...{head}","merges_url":"https://api.github.com/repos/namely/connect/merges","archive_url":"https://api.github.com/repos/namely/connect/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/namely/connect/downloads","issues_url":"https://api.github.com/repos/namely/connect/issues{/number}","pulls_url":"https://api.github.com/repos/namely/connect/pulls{/number}","milestones_url":"https://api.github.com/repos/namely/connect/milestones{/number}","notifications_url":"https://api.github.com/repos/namely/connect/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/namely/connect/labels{/name}","releases_url":"https://api.github.com/repos/namely/connect/releases{/id}","deployments_url":"https://api.github.com/repos/namely/connect/deployments","created_at":"2014-11-03T03:10:16Z","updated_at":"2016-05-17T17:09:11Z","pushed_at":"2016-06-01T18:46:52Z","git_url":"git://github.com/namely/connect.git","ssh_url":"git@github.com:namely/connect.git","clone_url":"https://github.com/namely/connect.git","svn_url":"https://github.com/namely/connect","homepage":"","size":3317,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":5,"mirror_url":null,"open_issues_count":4,"forks":5,"open_issues":4,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/namely/connect/pulls/313"},"html":{"href":"https://github.com/namely/connect/pull/313"},"issue":{"href":"https://api.github.com/repos/namely/connect/issues/313"},"comments":{"href":"https://api.github.com/repos/namely/connect/issues/313/comments"},"review_comments":{"href":"https://api.github.com/repos/namely/connect/pulls/313/comments"},"review_comment":{"href":"https://api.github.com/repos/namely/connect/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/namely/connect/pulls/313/commits"},"statuses":{"href":"https://api.github.com/repos/namely/connect/statuses/e245f9d86bc0cecf282cebe0c5aad9c4edcbe8d1"}}}}
{"actor":{"display_login":"bobbytables"}}