{"action":"created","comment":{"url":"https://api.github.com/repos/EdgarOrtegaRamirez/directory/pulls/comments/32774404","id":32774404,"diff_hunk":"@@ -0,0 +1,28 @@\n+require 'rails_helper'\n+\n+feature 'Unlock session to a person' do\n+\n+  before(:each) do\n+      admin = create(:admin)\n+      login_as(admin, scope: :admin)\n+      @person = create(:person)\n+      @person.lock_access!({ send_instructions: false })\n+      visit rails_admin.dashboard_path\n+  end\n+\n+  describe 'on the Admin/people page ' do\n+    it 'should be unlock session to a person' do\n+      visit('/admin/person')\n+\n+      click_link(\"Unlock Person\", :href => \"/admin/person/#{@person.id}/unlock_person\")\n+      expect(page).to have_content(\"Session unlocked to : #{@person.first_name}.\")\n+\n+      visit person_session_path\n+      fill_in 'person[email]',    with: @person.email\n+      fill_in 'person[password]', with: @person.password\n+      click_button 'Log in'\n+\n+      expect(page).to have_content('Signed in successfully.')","path":"spec/features/unlock_person_spec.rb","position":25,"original_position":25,"commit_id":"5a647e44bdcd5b37c07dd19a626f7af8e7944028","original_commit_id":"5a647e44bdcd5b37c07dd19a626f7af8e7944028","user":{"login":"fonsecajavier","id":477598,"avatar_url":"https://avatars.githubusercontent.com/u/477598?v=3","gravatar_id":"","url":"https://api.github.com/users/fonsecajavier","html_url":"https://github.com/fonsecajavier","followers_url":"https://api.github.com/users/fonsecajavier/followers","following_url":"https://api.github.com/users/fonsecajavier/following{/other_user}","gists_url":"https://api.github.com/users/fonsecajavier/gists{/gist_id}","starred_url":"https://api.github.com/users/fonsecajavier/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fonsecajavier/subscriptions","organizations_url":"https://api.github.com/users/fonsecajavier/orgs","repos_url":"https://api.github.com/users/fonsecajavier/repos","events_url":"https://api.github.com/users/fonsecajavier/events{/privacy}","received_events_url":"https://api.github.com/users/fonsecajavier/received_events","type":"User","site_admin":false},"body":"Please check the URL that the user was transferred to","created_at":"2015-06-18T20:27:59Z","updated_at":"2015-06-18T20:27:59Z","html_url":"https://github.com/EdgarOrtegaRamirez/directory/pull/49#discussion_r32774404","pull_request_url":"https://api.github.com/repos/EdgarOrtegaRamirez/directory/pulls/49","_links":{"self":{"href":"https://api.github.com/repos/EdgarOrtegaRamirez/directory/pulls/comments/32774404"},"html":{"href":"https://github.com/EdgarOrtegaRamirez/directory/pull/49#discussion_r32774404"},"pull_request":{"href":"https://api.github.com/repos/EdgarOrtegaRamirez/directory/pulls/49"}}},"pull_request":{"url":"https://api.github.com/repos/EdgarOrtegaRamirez/directory/pulls/49","id":38048351,"html_url":"https://github.com/EdgarOrtegaRamirez/directory/pull/49","diff_url":"https://github.com/EdgarOrtegaRamirez/directory/pull/49.diff","patch_url":"https://github.com/EdgarOrtegaRamirez/directory/pull/49.patch","issue_url":"https://api.github.com/repos/EdgarOrtegaRamirez/directory/issues/49","number":49,"state":"open","locked":false,"title":"Added custom action to lock/unlock a person","user":{"login":"Jucerweb","id":11802462,"avatar_url":"https://avatars.githubusercontent.com/u/11802462?v=3","gravatar_id":"","url":"https://api.github.com/users/Jucerweb","html_url":"https://github.com/Jucerweb","followers_url":"https://api.github.com/users/Jucerweb/followers","following_url":"https://api.github.com/users/Jucerweb/following{/other_user}","gists_url":"https://api.github.com/users/Jucerweb/gists{/gist_id}","starred_url":"https://api.github.com/users/Jucerweb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Jucerweb/subscriptions","organizations_url":"https://api.github.com/users/Jucerweb/orgs","repos_url":"https://api.github.com/users/Jucerweb/repos","events_url":"https://api.github.com/users/Jucerweb/events{/privacy}","received_events_url":"https://api.github.com/users/Jucerweb/received_events","type":"User","site_admin":false},"body":"Listo. ","created_at":"2015-06-18T20:20:02Z","updated_at":"2015-06-18T20:27:59Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b9828aacb2e34ce8b6d9cb10e5a6149190cd66c7","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/EdgarOrtegaRamirez/directory/pulls/49/commits","review_comments_url":"https://api.github.com/repos/EdgarOrtegaRamirez/directory/pulls/49/comments","review_comment_url":"https://api.github.com/repos/EdgarOrtegaRamirez/directory/pulls/comments{/number}","comments_url":"https://api.github.com/repos/EdgarOrtegaRamirez/directory/issues/49/comments","statuses_url":"https://api.github.com/repos/EdgarOrtegaRamirez/directory/statuses/5a647e44bdcd5b37c07dd19a626f7af8e7944028","head":{"label":"EdgarOrtegaRamirez:rails_admin_custom_action","ref":"rails_admin_custom_action","sha":"5a647e44bdcd5b37c07dd19a626f7af8e7944028","user":{"login":"EdgarOrtegaRamirez","id":2790520,"avatar_url":"https://avatars.githubusercontent.com/u/2790520?v=3","gravatar_id":"","url":"https://api.github.com/users/EdgarOrtegaRamirez","html_url":"https://github.com/EdgarOrtegaRamirez","followers_url":"https://api.github.com/users/EdgarOrtegaRamirez/followers","following_url":"https://api.github.com/users/EdgarOrtegaRamirez/following{/other_user}","gists_url":"https://api.github.com/users/EdgarOrtegaRamirez/gists{/gist_id}","starred_url":"https://api.github.com/users/EdgarOrtegaRamirez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/EdgarOrtegaRamirez/subscriptions","organizations_url":"https://api.github.com/users/EdgarOrtegaRamirez/orgs","repos_url":"https://api.github.com/users/EdgarOrtegaRamirez/repos","events_url":"https://api.github.com/users/EdgarOrtegaRamirez/events{/privacy}","received_events_url":"https://api.github.com/users/EdgarOrtegaRamirez/received_events","type":"User","site_admin":false},"repo":{"id":35045085,"name":"directory","full_name":"EdgarOrtegaRamirez/directory","owner":{"login":"EdgarOrtegaRamirez","id":2790520,"avatar_url":"https://avatars.githubusercontent.com/u/2790520?v=3","gravatar_id":"","url":"https://api.github.com/users/EdgarOrtegaRamirez","html_url":"https://github.com/EdgarOrtegaRamirez","followers_url":"https://api.github.com/users/EdgarOrtegaRamirez/followers","following_url":"https://api.github.com/users/EdgarOrtegaRamirez/following{/other_user}","gists_url":"https://api.github.com/users/EdgarOrtegaRamirez/gists{/gist_id}","starred_url":"https://api.github.com/users/EdgarOrtegaRamirez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/EdgarOrtegaRamirez/subscriptions","organizations_url":"https://api.github.com/users/EdgarOrtegaRamirez/orgs","repos_url":"https://api.github.com/users/EdgarOrtegaRamirez/repos","events_url":"https://api.github.com/users/EdgarOrtegaRamirez/events{/privacy}","received_events_url":"https://api.github.com/users/EdgarOrtegaRamirez/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/EdgarOrtegaRamirez/directory","description":"Training","fork":false,"url":"https://api.github.com/repos/EdgarOrtegaRamirez/directory","forks_url":"https://api.github.com/repos/EdgarOrtegaRamirez/directory/forks","keys_url":"https://api.github.com/repos/EdgarOrtegaRamirez/directory/keys{/key_id}","collaborators_url":"https://api.github.com/repos/EdgarOrtegaRamirez/directory/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/EdgarOrtegaRamirez/directory/teams","hooks_url":"https://api.github.com/repos/EdgarOrtegaRamirez/directory/hooks","issue_events_url":"https://api.github.com/repos/EdgarOrtegaRamirez/directory/issues/events{/number}","events_url":"https://api.github.com/repos/EdgarOrtegaRamirez/directory/events","assignees_url":"https://api.github.com/repos/EdgarOrtegaRamirez/directory/assignees{/user}","branches_url":"https://api.github.com/repos/EdgarOrtegaRamirez/directory/branches{/branch}","tags_url":"https://api.github.com/repos/EdgarOrtegaRamirez/directory/tags","blobs_url":"https://api.github.com/repos/EdgarOrtegaRamirez/directory/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/EdgarOrtegaRamirez/directory/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/EdgarOrtegaRamirez/directory/git/refs{/sha}","trees_url":"https://api.github.com/repos/EdgarOrtegaRamirez/directory/git/trees{/sha}","statuses_url":"https://api.github.com/repos/EdgarOrtegaRamirez/directory/statuses/{sha}","languages_url":"https://api.github.com/repos/EdgarOrtegaRamirez/directory/languages","stargazers_url":"https://api.github.com/repos/EdgarOrtegaRamirez/directory/stargazers","contributors_url":"https://api.github.com/repos/EdgarOrtegaRamirez/directory/contributors","subscribers_url":"https://api.github.com/repos/EdgarOrtegaRamirez/directory/subscribers","subscription_url":"https://api.github.com/repos/EdgarOrtegaRamirez/directory/subscription","commits_url":"https://api.github.com/repos/EdgarOrtegaRamirez/directory/commits{/sha}","git_commits_url":"https://api.github.com/repos/EdgarOrtegaRamirez/directory/git/commits{/sha}","comments_url":"https://api.github.com/repos/EdgarOrtegaRamirez/directory/comments{/number}","issue_comment_url":"https://api.github.com/repos/EdgarOrtegaRamirez/directory/issues/comments{/number}","contents_url":"https://api.github.com/repos/EdgarOrtegaRamirez/directory/contents/{+path}","compare_url":"https://api.github.com/repos/EdgarOrtegaRamirez/directory/compare/{base}...{head}","merges_url":"https://api.github.com/repos/EdgarOrtegaRamirez/directory/merges","archive_url":"https://api.github.com/repos/EdgarOrtegaRamirez/directory/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/EdgarOrtegaRamirez/directory/downloads","issues_url":"https://api.github.com/repos/EdgarOrtegaRamirez/directory/issues{/number}","pulls_url":"https://api.github.com/repos/EdgarOrtegaRamirez/directory/pulls{/number}","milestones_url":"https://api.github.com/repos/EdgarOrtegaRamirez/directory/milestones{/number}","notifications_url":"https://api.github.com/repos/EdgarOrtegaRamirez/directory/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/EdgarOrtegaRamirez/directory/labels{/name}","releases_url":"https://api.github.com/repos/EdgarOrtegaRamirez/directory/releases{/id}","created_at":"2015-05-04T16:09:59Z","updated_at":"2015-05-22T20:12:17Z","pushed_at":"2015-06-18T20:20:02Z","git_url":"git://github.com/EdgarOrtegaRamirez/directory.git","ssh_url":"git@github.com:EdgarOrtegaRamirez/directory.git","clone_url":"https://github.com/EdgarOrtegaRamirez/directory.git","svn_url":"https://github.com/EdgarOrtegaRamirez/directory","homepage":"","size":1012,"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":"EdgarOrtegaRamirez:master","ref":"master","sha":"5fcb74f4f8c307ded2277808c8378891e21aac5b","user":{"login":"EdgarOrtegaRamirez","id":2790520,"avatar_url":"https://avatars.githubusercontent.com/u/2790520?v=3","gravatar_id":"","url":"https://api.github.com/users/EdgarOrtegaRamirez","html_url":"https://github.com/EdgarOrtegaRamirez","followers_url":"https://api.github.com/users/EdgarOrtegaRamirez/followers","following_url":"https://api.github.com/users/EdgarOrtegaRamirez/following{/other_user}","gists_url":"https://api.github.com/users/EdgarOrtegaRamirez/gists{/gist_id}","starred_url":"https://api.github.com/users/EdgarOrtegaRamirez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/EdgarOrtegaRamirez/subscriptions","organizations_url":"https://api.github.com/users/EdgarOrtegaRamirez/orgs","repos_url":"https://api.github.com/users/EdgarOrtegaRamirez/repos","events_url":"https://api.github.com/users/EdgarOrtegaRamirez/events{/privacy}","received_events_url":"https://api.github.com/users/EdgarOrtegaRamirez/received_events","type":"User","site_admin":false},"repo":{"id":35045085,"name":"directory","full_name":"EdgarOrtegaRamirez/directory","owner":{"login":"EdgarOrtegaRamirez","id":2790520,"avatar_url":"https://avatars.githubusercontent.com/u/2790520?v=3","gravatar_id":"","url":"https://api.github.com/users/EdgarOrtegaRamirez","html_url":"https://github.com/EdgarOrtegaRamirez","followers_url":"https://api.github.com/users/EdgarOrtegaRamirez/followers","following_url":"https://api.github.com/users/EdgarOrtegaRamirez/following{/other_user}","gists_url":"https://api.github.com/users/EdgarOrtegaRamirez/gists{/gist_id}","starred_url":"https://api.github.com/users/EdgarOrtegaRamirez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/EdgarOrtegaRamirez/subscriptions","organizations_url":"https://api.github.com/users/EdgarOrtegaRamirez/orgs","repos_url":"https://api.github.com/users/EdgarOrtegaRamirez/repos","events_url":"https://api.github.com/users/EdgarOrtegaRamirez/events{/privacy}","received_events_url":"https://api.github.com/users/EdgarOrtegaRamirez/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/EdgarOrtegaRamirez/directory","description":"Training","fork":false,"url":"https://api.github.com/repos/EdgarOrtegaRamirez/directory","forks_url":"https://api.github.com/repos/EdgarOrtegaRamirez/directory/forks","keys_url":"https://api.github.com/repos/EdgarOrtegaRamirez/directory/keys{/key_id}","collaborators_url":"https://api.github.com/repos/EdgarOrtegaRamirez/directory/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/EdgarOrtegaRamirez/directory/teams","hooks_url":"https://api.github.com/repos/EdgarOrtegaRamirez/directory/hooks","issue_events_url":"https://api.github.com/repos/EdgarOrtegaRamirez/directory/issues/events{/number}","events_url":"https://api.github.com/repos/EdgarOrtegaRamirez/directory/events","assignees_url":"https://api.github.com/repos/EdgarOrtegaRamirez/directory/assignees{/user}","branches_url":"https://api.github.com/repos/EdgarOrtegaRamirez/directory/branches{/branch}","tags_url":"https://api.github.com/repos/EdgarOrtegaRamirez/directory/tags","blobs_url":"https://api.github.com/repos/EdgarOrtegaRamirez/directory/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/EdgarOrtegaRamirez/directory/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/EdgarOrtegaRamirez/directory/git/refs{/sha}","trees_url":"https://api.github.com/repos/EdgarOrtegaRamirez/directory/git/trees{/sha}","statuses_url":"https://api.github.com/repos/EdgarOrtegaRamirez/directory/statuses/{sha}","languages_url":"https://api.github.com/repos/EdgarOrtegaRamirez/directory/languages","stargazers_url":"https://api.github.com/repos/EdgarOrtegaRamirez/directory/stargazers","contributors_url":"https://api.github.com/repos/EdgarOrtegaRamirez/directory/contributors","subscribers_url":"https://api.github.com/repos/EdgarOrtegaRamirez/directory/subscribers","subscription_url":"https://api.github.com/repos/EdgarOrtegaRamirez/directory/subscription","commits_url":"https://api.github.com/repos/EdgarOrtegaRamirez/directory/commits{/sha}","git_commits_url":"https://api.github.com/repos/EdgarOrtegaRamirez/directory/git/commits{/sha}","comments_url":"https://api.github.com/repos/EdgarOrtegaRamirez/directory/comments{/number}","issue_comment_url":"https://api.github.com/repos/EdgarOrtegaRamirez/directory/issues/comments{/number}","contents_url":"https://api.github.com/repos/EdgarOrtegaRamirez/directory/contents/{+path}","compare_url":"https://api.github.com/repos/EdgarOrtegaRamirez/directory/compare/{base}...{head}","merges_url":"https://api.github.com/repos/EdgarOrtegaRamirez/directory/merges","archive_url":"https://api.github.com/repos/EdgarOrtegaRamirez/directory/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/EdgarOrtegaRamirez/directory/downloads","issues_url":"https://api.github.com/repos/EdgarOrtegaRamirez/directory/issues{/number}","pulls_url":"https://api.github.com/repos/EdgarOrtegaRamirez/directory/pulls{/number}","milestones_url":"https://api.github.com/repos/EdgarOrtegaRamirez/directory/milestones{/number}","notifications_url":"https://api.github.com/repos/EdgarOrtegaRamirez/directory/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/EdgarOrtegaRamirez/directory/labels{/name}","releases_url":"https://api.github.com/repos/EdgarOrtegaRamirez/directory/releases{/id}","created_at":"2015-05-04T16:09:59Z","updated_at":"2015-05-22T20:12:17Z","pushed_at":"2015-06-18T20:20:02Z","git_url":"git://github.com/EdgarOrtegaRamirez/directory.git","ssh_url":"git@github.com:EdgarOrtegaRamirez/directory.git","clone_url":"https://github.com/EdgarOrtegaRamirez/directory.git","svn_url":"https://github.com/EdgarOrtegaRamirez/directory","homepage":"","size":1012,"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/EdgarOrtegaRamirez/directory/pulls/49"},"html":{"href":"https://github.com/EdgarOrtegaRamirez/directory/pull/49"},"issue":{"href":"https://api.github.com/repos/EdgarOrtegaRamirez/directory/issues/49"},"comments":{"href":"https://api.github.com/repos/EdgarOrtegaRamirez/directory/issues/49/comments"},"review_comments":{"href":"https://api.github.com/repos/EdgarOrtegaRamirez/directory/pulls/49/comments"},"review_comment":{"href":"https://api.github.com/repos/EdgarOrtegaRamirez/directory/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/EdgarOrtegaRamirez/directory/pulls/49/commits"},"statuses":{"href":"https://api.github.com/repos/EdgarOrtegaRamirez/directory/statuses/5a647e44bdcd5b37c07dd19a626f7af8e7944028"}}}}