{"action":"created","comment":{"url":"https://api.github.com/repos/ipcross/ansme/pulls/comments/68900915","id":68900915,"diff_hunk":"@@ -0,0 +1,47 @@\n+require_relative '../acceptance_helper'\n+\n+feature 'Subscription to question' do\n+  given(:user) { create(:user) }\n+  given(:user2) { create(:user) }\n+  given!(:question) { create(:question, user: user2) }\n+\n+  describe 'Authenticated user' do\n+    background do\n+      sign_in(user)\n+      visit question_path(question)\n+    end\n+\n+    scenario 'subscribes to question', js: true do\n+      within '.question' do\n+        click_on 'Subscribe'\n+        expect(page).to have_link('Unsubscribe')\n+      end\n+    end\n+\n+    scenario 'unsubscribes to question', js: true do\n+      within '.question' do\n+        click_on 'Subscribe'\n+        click_on 'Unsubscribe'\n+        expect(page).to have_link('Subscribe')\n+      end\n+    end\n+\n+    scenario 'receives email with answer', js: true do\n+      click_on 'Subscribe'\n+      fill_in 'new-answer-form', with: 'My answer'\n+      click_on 'Create'\n+      sleep(1)\n+      open_email(user.email)\n+      expect(current_email).to have_content 'My answer'","path":"spec/acceptance/questions/subscription_question_spec.rb","position":35,"original_position":35,"commit_id":"216aca0907795599659a3a7ab720a995725d59bd","original_commit_id":"216aca0907795599659a3a7ab720a995725d59bd","user":{"login":"palkan","id":1516722,"avatar_url":"https://avatars.githubusercontent.com/u/1516722?v=3","gravatar_id":"","url":"https://api.github.com/users/palkan","html_url":"https://github.com/palkan","followers_url":"https://api.github.com/users/palkan/followers","following_url":"https://api.github.com/users/palkan/following{/other_user}","gists_url":"https://api.github.com/users/palkan/gists{/gist_id}","starred_url":"https://api.github.com/users/palkan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/palkan/subscriptions","organizations_url":"https://api.github.com/users/palkan/orgs","repos_url":"https://api.github.com/users/palkan/repos","events_url":"https://api.github.com/users/palkan/events{/privacy}","received_events_url":"https://api.github.com/users/palkan/received_events","type":"User","site_admin":false},"body":"Я тебе говорил про тесты дайджеста.\r\n\r\nОт `sleep` надо избавиться, кстати.\r\n","created_at":"2016-06-29T07:59:23Z","updated_at":"2016-06-29T07:59:23Z","html_url":"https://github.com/ipcross/ansme/pull/29#discussion_r68900915","pull_request_url":"https://api.github.com/repos/ipcross/ansme/pulls/29","_links":{"self":{"href":"https://api.github.com/repos/ipcross/ansme/pulls/comments/68900915"},"html":{"href":"https://github.com/ipcross/ansme/pull/29#discussion_r68900915"},"pull_request":{"href":"https://api.github.com/repos/ipcross/ansme/pulls/29"}}},"pull_request":{"url":"https://api.github.com/repos/ipcross/ansme/pulls/29","id":75308639,"html_url":"https://github.com/ipcross/ansme/pull/29","diff_url":"https://github.com/ipcross/ansme/pull/29.diff","patch_url":"https://github.com/ipcross/ansme/pull/29.patch","issue_url":"https://api.github.com/repos/ipcross/ansme/issues/29","number":29,"state":"open","locked":false,"title":"PR for lesson 17","user":{"login":"ipcross","id":1888813,"avatar_url":"https://avatars.githubusercontent.com/u/1888813?v=3","gravatar_id":"","url":"https://api.github.com/users/ipcross","html_url":"https://github.com/ipcross","followers_url":"https://api.github.com/users/ipcross/followers","following_url":"https://api.github.com/users/ipcross/following{/other_user}","gists_url":"https://api.github.com/users/ipcross/gists{/gist_id}","starred_url":"https://api.github.com/users/ipcross/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ipcross/subscriptions","organizations_url":"https://api.github.com/users/ipcross/orgs","repos_url":"https://api.github.com/users/ipcross/repos","events_url":"https://api.github.com/users/ipcross/events{/privacy}","received_events_url":"https://api.github.com/users/ipcross/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-06-27T13:12:55Z","updated_at":"2016-06-29T07:59:23Z","closed_at":null,"merged_at":null,"merge_commit_sha":"36b86159c3ad11d46e2beaff39ab017b68f027f7","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/ipcross/ansme/pulls/29/commits","review_comments_url":"https://api.github.com/repos/ipcross/ansme/pulls/29/comments","review_comment_url":"https://api.github.com/repos/ipcross/ansme/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ipcross/ansme/issues/29/comments","statuses_url":"https://api.github.com/repos/ipcross/ansme/statuses/216aca0907795599659a3a7ab720a995725d59bd","head":{"label":"ipcross:17_Background_job","ref":"17_Background_job","sha":"216aca0907795599659a3a7ab720a995725d59bd","user":{"login":"ipcross","id":1888813,"avatar_url":"https://avatars.githubusercontent.com/u/1888813?v=3","gravatar_id":"","url":"https://api.github.com/users/ipcross","html_url":"https://github.com/ipcross","followers_url":"https://api.github.com/users/ipcross/followers","following_url":"https://api.github.com/users/ipcross/following{/other_user}","gists_url":"https://api.github.com/users/ipcross/gists{/gist_id}","starred_url":"https://api.github.com/users/ipcross/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ipcross/subscriptions","organizations_url":"https://api.github.com/users/ipcross/orgs","repos_url":"https://api.github.com/users/ipcross/repos","events_url":"https://api.github.com/users/ipcross/events{/privacy}","received_events_url":"https://api.github.com/users/ipcross/received_events","type":"User","site_admin":false},"repo":{"id":56970025,"name":"ansme","full_name":"ipcross/ansme","owner":{"login":"ipcross","id":1888813,"avatar_url":"https://avatars.githubusercontent.com/u/1888813?v=3","gravatar_id":"","url":"https://api.github.com/users/ipcross","html_url":"https://github.com/ipcross","followers_url":"https://api.github.com/users/ipcross/followers","following_url":"https://api.github.com/users/ipcross/following{/other_user}","gists_url":"https://api.github.com/users/ipcross/gists{/gist_id}","starred_url":"https://api.github.com/users/ipcross/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ipcross/subscriptions","organizations_url":"https://api.github.com/users/ipcross/orgs","repos_url":"https://api.github.com/users/ipcross/repos","events_url":"https://api.github.com/users/ipcross/events{/privacy}","received_events_url":"https://api.github.com/users/ipcross/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ipcross/ansme","description":"Example Application for a StackOverflow type service.","fork":false,"url":"https://api.github.com/repos/ipcross/ansme","forks_url":"https://api.github.com/repos/ipcross/ansme/forks","keys_url":"https://api.github.com/repos/ipcross/ansme/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ipcross/ansme/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ipcross/ansme/teams","hooks_url":"https://api.github.com/repos/ipcross/ansme/hooks","issue_events_url":"https://api.github.com/repos/ipcross/ansme/issues/events{/number}","events_url":"https://api.github.com/repos/ipcross/ansme/events","assignees_url":"https://api.github.com/repos/ipcross/ansme/assignees{/user}","branches_url":"https://api.github.com/repos/ipcross/ansme/branches{/branch}","tags_url":"https://api.github.com/repos/ipcross/ansme/tags","blobs_url":"https://api.github.com/repos/ipcross/ansme/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ipcross/ansme/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ipcross/ansme/git/refs{/sha}","trees_url":"https://api.github.com/repos/ipcross/ansme/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ipcross/ansme/statuses/{sha}","languages_url":"https://api.github.com/repos/ipcross/ansme/languages","stargazers_url":"https://api.github.com/repos/ipcross/ansme/stargazers","contributors_url":"https://api.github.com/repos/ipcross/ansme/contributors","subscribers_url":"https://api.github.com/repos/ipcross/ansme/subscribers","subscription_url":"https://api.github.com/repos/ipcross/ansme/subscription","commits_url":"https://api.github.com/repos/ipcross/ansme/commits{/sha}","git_commits_url":"https://api.github.com/repos/ipcross/ansme/git/commits{/sha}","comments_url":"https://api.github.com/repos/ipcross/ansme/comments{/number}","issue_comment_url":"https://api.github.com/repos/ipcross/ansme/issues/comments{/number}","contents_url":"https://api.github.com/repos/ipcross/ansme/contents/{+path}","compare_url":"https://api.github.com/repos/ipcross/ansme/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ipcross/ansme/merges","archive_url":"https://api.github.com/repos/ipcross/ansme/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ipcross/ansme/downloads","issues_url":"https://api.github.com/repos/ipcross/ansme/issues{/number}","pulls_url":"https://api.github.com/repos/ipcross/ansme/pulls{/number}","milestones_url":"https://api.github.com/repos/ipcross/ansme/milestones{/number}","notifications_url":"https://api.github.com/repos/ipcross/ansme/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ipcross/ansme/labels{/name}","releases_url":"https://api.github.com/repos/ipcross/ansme/releases{/id}","deployments_url":"https://api.github.com/repos/ipcross/ansme/deployments","created_at":"2016-04-24T12:21:44Z","updated_at":"2016-04-30T13:07:56Z","pushed_at":"2016-06-28T09:28:47Z","git_url":"git://github.com/ipcross/ansme.git","ssh_url":"git@github.com:ipcross/ansme.git","clone_url":"https://github.com/ipcross/ansme.git","svn_url":"https://github.com/ipcross/ansme","homepage":"","size":190,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":9,"forks":0,"open_issues":9,"watchers":0,"default_branch":"master"}},"base":{"label":"ipcross:master","ref":"master","sha":"6afc95e185cb04f552a307110b41f0dd1744be56","user":{"login":"ipcross","id":1888813,"avatar_url":"https://avatars.githubusercontent.com/u/1888813?v=3","gravatar_id":"","url":"https://api.github.com/users/ipcross","html_url":"https://github.com/ipcross","followers_url":"https://api.github.com/users/ipcross/followers","following_url":"https://api.github.com/users/ipcross/following{/other_user}","gists_url":"https://api.github.com/users/ipcross/gists{/gist_id}","starred_url":"https://api.github.com/users/ipcross/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ipcross/subscriptions","organizations_url":"https://api.github.com/users/ipcross/orgs","repos_url":"https://api.github.com/users/ipcross/repos","events_url":"https://api.github.com/users/ipcross/events{/privacy}","received_events_url":"https://api.github.com/users/ipcross/received_events","type":"User","site_admin":false},"repo":{"id":56970025,"name":"ansme","full_name":"ipcross/ansme","owner":{"login":"ipcross","id":1888813,"avatar_url":"https://avatars.githubusercontent.com/u/1888813?v=3","gravatar_id":"","url":"https://api.github.com/users/ipcross","html_url":"https://github.com/ipcross","followers_url":"https://api.github.com/users/ipcross/followers","following_url":"https://api.github.com/users/ipcross/following{/other_user}","gists_url":"https://api.github.com/users/ipcross/gists{/gist_id}","starred_url":"https://api.github.com/users/ipcross/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ipcross/subscriptions","organizations_url":"https://api.github.com/users/ipcross/orgs","repos_url":"https://api.github.com/users/ipcross/repos","events_url":"https://api.github.com/users/ipcross/events{/privacy}","received_events_url":"https://api.github.com/users/ipcross/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ipcross/ansme","description":"Example Application for a StackOverflow type service.","fork":false,"url":"https://api.github.com/repos/ipcross/ansme","forks_url":"https://api.github.com/repos/ipcross/ansme/forks","keys_url":"https://api.github.com/repos/ipcross/ansme/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ipcross/ansme/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ipcross/ansme/teams","hooks_url":"https://api.github.com/repos/ipcross/ansme/hooks","issue_events_url":"https://api.github.com/repos/ipcross/ansme/issues/events{/number}","events_url":"https://api.github.com/repos/ipcross/ansme/events","assignees_url":"https://api.github.com/repos/ipcross/ansme/assignees{/user}","branches_url":"https://api.github.com/repos/ipcross/ansme/branches{/branch}","tags_url":"https://api.github.com/repos/ipcross/ansme/tags","blobs_url":"https://api.github.com/repos/ipcross/ansme/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ipcross/ansme/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ipcross/ansme/git/refs{/sha}","trees_url":"https://api.github.com/repos/ipcross/ansme/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ipcross/ansme/statuses/{sha}","languages_url":"https://api.github.com/repos/ipcross/ansme/languages","stargazers_url":"https://api.github.com/repos/ipcross/ansme/stargazers","contributors_url":"https://api.github.com/repos/ipcross/ansme/contributors","subscribers_url":"https://api.github.com/repos/ipcross/ansme/subscribers","subscription_url":"https://api.github.com/repos/ipcross/ansme/subscription","commits_url":"https://api.github.com/repos/ipcross/ansme/commits{/sha}","git_commits_url":"https://api.github.com/repos/ipcross/ansme/git/commits{/sha}","comments_url":"https://api.github.com/repos/ipcross/ansme/comments{/number}","issue_comment_url":"https://api.github.com/repos/ipcross/ansme/issues/comments{/number}","contents_url":"https://api.github.com/repos/ipcross/ansme/contents/{+path}","compare_url":"https://api.github.com/repos/ipcross/ansme/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ipcross/ansme/merges","archive_url":"https://api.github.com/repos/ipcross/ansme/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ipcross/ansme/downloads","issues_url":"https://api.github.com/repos/ipcross/ansme/issues{/number}","pulls_url":"https://api.github.com/repos/ipcross/ansme/pulls{/number}","milestones_url":"https://api.github.com/repos/ipcross/ansme/milestones{/number}","notifications_url":"https://api.github.com/repos/ipcross/ansme/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ipcross/ansme/labels{/name}","releases_url":"https://api.github.com/repos/ipcross/ansme/releases{/id}","deployments_url":"https://api.github.com/repos/ipcross/ansme/deployments","created_at":"2016-04-24T12:21:44Z","updated_at":"2016-04-30T13:07:56Z","pushed_at":"2016-06-28T09:28:47Z","git_url":"git://github.com/ipcross/ansme.git","ssh_url":"git@github.com:ipcross/ansme.git","clone_url":"https://github.com/ipcross/ansme.git","svn_url":"https://github.com/ipcross/ansme","homepage":"","size":190,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":9,"forks":0,"open_issues":9,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ipcross/ansme/pulls/29"},"html":{"href":"https://github.com/ipcross/ansme/pull/29"},"issue":{"href":"https://api.github.com/repos/ipcross/ansme/issues/29"},"comments":{"href":"https://api.github.com/repos/ipcross/ansme/issues/29/comments"},"review_comments":{"href":"https://api.github.com/repos/ipcross/ansme/pulls/29/comments"},"review_comment":{"href":"https://api.github.com/repos/ipcross/ansme/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ipcross/ansme/pulls/29/commits"},"statuses":{"href":"https://api.github.com/repos/ipcross/ansme/statuses/216aca0907795599659a3a7ab720a995725d59bd"}}}}
{"actor":{"display_login":"palkan"}}