{"action":"created","comment":{"url":"https://api.github.com/repos/nf1213/countries/pulls/comments/22616027","id":22616027,"diff_hunk":"@@ -62,4 +63,26 @@\n     expect(page).to have_content \"Score: 1\"\n   end\n \n+    scenario \"a user successfully votes and gets email\" do\n+    sign_in(@user)\n+\n+    ActionMailer::Base.deliveries =[]\n+\n+    visit country_city_path(@country, @city)\n+\n+    find(\"#up_vote\").click\n+\n+    expect(page).to have_content \"You have voted!\"\n+    expect(page).to have_content \"Score: 1\"\n+\n+\n+    expect(ActionMailer::Base.deliveries.size).to eql(1)\n+\n+    last_email = ActionMailer::Base.deliveries.last\n+    expect(last_email).to have_subject(\"Post Upvoted\")\n+    expect(last_email).to deliver_to(@creator.email)\n+  end\n+\n end\n+","path":"spec/features/user_votes_for_a_review_spec.rb","position":33,"original_position":33,"commit_id":"b297234c59dcd2217e804dac815a028aff9a379d","original_commit_id":"b297234c59dcd2217e804dac815a028aff9a379d","user":{"login":"houndci","id":6697940,"avatar_url":"https://avatars.githubusercontent.com/u/6697940?v=3","gravatar_id":"","url":"https://api.github.com/users/houndci","html_url":"https://github.com/houndci","followers_url":"https://api.github.com/users/houndci/followers","following_url":"https://api.github.com/users/houndci/following{/other_user}","gists_url":"https://api.github.com/users/houndci/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci/subscriptions","organizations_url":"https://api.github.com/users/houndci/orgs","repos_url":"https://api.github.com/users/houndci/repos","events_url":"https://api.github.com/users/houndci/events{/privacy}","received_events_url":"https://api.github.com/users/houndci/received_events","type":"User","site_admin":false},"body":"2 trailing blank lines detected.","created_at":"2015-01-07T21:09:44Z","updated_at":"2015-01-07T21:09:44Z","html_url":"https://github.com/nf1213/countries/pull/29#discussion_r22616027","pull_request_url":"https://api.github.com/repos/nf1213/countries/pulls/29","_links":{"self":{"href":"https://api.github.com/repos/nf1213/countries/pulls/comments/22616027"},"html":{"href":"https://github.com/nf1213/countries/pull/29#discussion_r22616027"},"pull_request":{"href":"https://api.github.com/repos/nf1213/countries/pulls/29"}}},"pull_request":{"url":"https://api.github.com/repos/nf1213/countries/pulls/29","id":26987919,"html_url":"https://github.com/nf1213/countries/pull/29","diff_url":"https://github.com/nf1213/countries/pull/29.diff","patch_url":"https://github.com/nf1213/countries/pull/29.patch","issue_url":"https://api.github.com/repos/nf1213/countries/issues/29","number":29,"state":"open","locked":false,"title":"Vote email","user":{"login":"pko104","id":9140186,"avatar_url":"https://avatars.githubusercontent.com/u/9140186?v=3","gravatar_id":"","url":"https://api.github.com/users/pko104","html_url":"https://github.com/pko104","followers_url":"https://api.github.com/users/pko104/followers","following_url":"https://api.github.com/users/pko104/following{/other_user}","gists_url":"https://api.github.com/users/pko104/gists{/gist_id}","starred_url":"https://api.github.com/users/pko104/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pko104/subscriptions","organizations_url":"https://api.github.com/users/pko104/orgs","repos_url":"https://api.github.com/users/pko104/repos","events_url":"https://api.github.com/users/pko104/events{/privacy}","received_events_url":"https://api.github.com/users/pko104/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-01-07T21:09:32Z","updated_at":"2015-01-07T21:09:44Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/nf1213/countries/pulls/29/commits","review_comments_url":"https://api.github.com/repos/nf1213/countries/pulls/29/comments","review_comment_url":"https://api.github.com/repos/nf1213/countries/pulls/comments/{number}","comments_url":"https://api.github.com/repos/nf1213/countries/issues/29/comments","statuses_url":"https://api.github.com/repos/nf1213/countries/statuses/b297234c59dcd2217e804dac815a028aff9a379d","head":{"label":"nf1213:vote_email","ref":"vote_email","sha":"b297234c59dcd2217e804dac815a028aff9a379d","user":{"login":"nf1213","id":7142946,"avatar_url":"https://avatars.githubusercontent.com/u/7142946?v=3","gravatar_id":"","url":"https://api.github.com/users/nf1213","html_url":"https://github.com/nf1213","followers_url":"https://api.github.com/users/nf1213/followers","following_url":"https://api.github.com/users/nf1213/following{/other_user}","gists_url":"https://api.github.com/users/nf1213/gists{/gist_id}","starred_url":"https://api.github.com/users/nf1213/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nf1213/subscriptions","organizations_url":"https://api.github.com/users/nf1213/orgs","repos_url":"https://api.github.com/users/nf1213/repos","events_url":"https://api.github.com/users/nf1213/events{/privacy}","received_events_url":"https://api.github.com/users/nf1213/received_events","type":"User","site_admin":false},"repo":{"id":28603846,"name":"countries","full_name":"nf1213/countries","owner":{"login":"nf1213","id":7142946,"avatar_url":"https://avatars.githubusercontent.com/u/7142946?v=3","gravatar_id":"","url":"https://api.github.com/users/nf1213","html_url":"https://github.com/nf1213","followers_url":"https://api.github.com/users/nf1213/followers","following_url":"https://api.github.com/users/nf1213/following{/other_user}","gists_url":"https://api.github.com/users/nf1213/gists{/gist_id}","starred_url":"https://api.github.com/users/nf1213/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nf1213/subscriptions","organizations_url":"https://api.github.com/users/nf1213/orgs","repos_url":"https://api.github.com/users/nf1213/repos","events_url":"https://api.github.com/users/nf1213/events{/privacy}","received_events_url":"https://api.github.com/users/nf1213/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/nf1213/countries","description":"City review site that gets the overall scores for countries from the individual city reviews.","fork":false,"url":"https://api.github.com/repos/nf1213/countries","forks_url":"https://api.github.com/repos/nf1213/countries/forks","keys_url":"https://api.github.com/repos/nf1213/countries/keys{/key_id}","collaborators_url":"https://api.github.com/repos/nf1213/countries/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/nf1213/countries/teams","hooks_url":"https://api.github.com/repos/nf1213/countries/hooks","issue_events_url":"https://api.github.com/repos/nf1213/countries/issues/events{/number}","events_url":"https://api.github.com/repos/nf1213/countries/events","assignees_url":"https://api.github.com/repos/nf1213/countries/assignees{/user}","branches_url":"https://api.github.com/repos/nf1213/countries/branches{/branch}","tags_url":"https://api.github.com/repos/nf1213/countries/tags","blobs_url":"https://api.github.com/repos/nf1213/countries/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/nf1213/countries/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/nf1213/countries/git/refs{/sha}","trees_url":"https://api.github.com/repos/nf1213/countries/git/trees{/sha}","statuses_url":"https://api.github.com/repos/nf1213/countries/statuses/{sha}","languages_url":"https://api.github.com/repos/nf1213/countries/languages","stargazers_url":"https://api.github.com/repos/nf1213/countries/stargazers","contributors_url":"https://api.github.com/repos/nf1213/countries/contributors","subscribers_url":"https://api.github.com/repos/nf1213/countries/subscribers","subscription_url":"https://api.github.com/repos/nf1213/countries/subscription","commits_url":"https://api.github.com/repos/nf1213/countries/commits{/sha}","git_commits_url":"https://api.github.com/repos/nf1213/countries/git/commits{/sha}","comments_url":"https://api.github.com/repos/nf1213/countries/comments{/number}","issue_comment_url":"https://api.github.com/repos/nf1213/countries/issues/comments/{number}","contents_url":"https://api.github.com/repos/nf1213/countries/contents/{+path}","compare_url":"https://api.github.com/repos/nf1213/countries/compare/{base}...{head}","merges_url":"https://api.github.com/repos/nf1213/countries/merges","archive_url":"https://api.github.com/repos/nf1213/countries/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/nf1213/countries/downloads","issues_url":"https://api.github.com/repos/nf1213/countries/issues{/number}","pulls_url":"https://api.github.com/repos/nf1213/countries/pulls{/number}","milestones_url":"https://api.github.com/repos/nf1213/countries/milestones{/number}","notifications_url":"https://api.github.com/repos/nf1213/countries/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/nf1213/countries/labels{/name}","releases_url":"https://api.github.com/repos/nf1213/countries/releases{/id}","created_at":"2014-12-29T19:38:48Z","updated_at":"2015-01-07T19:18:13Z","pushed_at":"2015-01-07T19:46:15Z","git_url":"git://github.com/nf1213/countries.git","ssh_url":"git@github.com:nf1213/countries.git","clone_url":"https://github.com/nf1213/countries.git","svn_url":"https://github.com/nf1213/countries","homepage":"https://immense-oasis-2395.herokuapp.com/","size":3276,"stargazers_count":1,"watchers_count":1,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":6,"forks":0,"open_issues":6,"watchers":1,"default_branch":"master"}},"base":{"label":"nf1213:master","ref":"master","sha":"6fa36d50cc6b568c64fbca96b0ec361dc32ee952","user":{"login":"nf1213","id":7142946,"avatar_url":"https://avatars.githubusercontent.com/u/7142946?v=3","gravatar_id":"","url":"https://api.github.com/users/nf1213","html_url":"https://github.com/nf1213","followers_url":"https://api.github.com/users/nf1213/followers","following_url":"https://api.github.com/users/nf1213/following{/other_user}","gists_url":"https://api.github.com/users/nf1213/gists{/gist_id}","starred_url":"https://api.github.com/users/nf1213/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nf1213/subscriptions","organizations_url":"https://api.github.com/users/nf1213/orgs","repos_url":"https://api.github.com/users/nf1213/repos","events_url":"https://api.github.com/users/nf1213/events{/privacy}","received_events_url":"https://api.github.com/users/nf1213/received_events","type":"User","site_admin":false},"repo":{"id":28603846,"name":"countries","full_name":"nf1213/countries","owner":{"login":"nf1213","id":7142946,"avatar_url":"https://avatars.githubusercontent.com/u/7142946?v=3","gravatar_id":"","url":"https://api.github.com/users/nf1213","html_url":"https://github.com/nf1213","followers_url":"https://api.github.com/users/nf1213/followers","following_url":"https://api.github.com/users/nf1213/following{/other_user}","gists_url":"https://api.github.com/users/nf1213/gists{/gist_id}","starred_url":"https://api.github.com/users/nf1213/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nf1213/subscriptions","organizations_url":"https://api.github.com/users/nf1213/orgs","repos_url":"https://api.github.com/users/nf1213/repos","events_url":"https://api.github.com/users/nf1213/events{/privacy}","received_events_url":"https://api.github.com/users/nf1213/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/nf1213/countries","description":"City review site that gets the overall scores for countries from the individual city reviews.","fork":false,"url":"https://api.github.com/repos/nf1213/countries","forks_url":"https://api.github.com/repos/nf1213/countries/forks","keys_url":"https://api.github.com/repos/nf1213/countries/keys{/key_id}","collaborators_url":"https://api.github.com/repos/nf1213/countries/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/nf1213/countries/teams","hooks_url":"https://api.github.com/repos/nf1213/countries/hooks","issue_events_url":"https://api.github.com/repos/nf1213/countries/issues/events{/number}","events_url":"https://api.github.com/repos/nf1213/countries/events","assignees_url":"https://api.github.com/repos/nf1213/countries/assignees{/user}","branches_url":"https://api.github.com/repos/nf1213/countries/branches{/branch}","tags_url":"https://api.github.com/repos/nf1213/countries/tags","blobs_url":"https://api.github.com/repos/nf1213/countries/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/nf1213/countries/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/nf1213/countries/git/refs{/sha}","trees_url":"https://api.github.com/repos/nf1213/countries/git/trees{/sha}","statuses_url":"https://api.github.com/repos/nf1213/countries/statuses/{sha}","languages_url":"https://api.github.com/repos/nf1213/countries/languages","stargazers_url":"https://api.github.com/repos/nf1213/countries/stargazers","contributors_url":"https://api.github.com/repos/nf1213/countries/contributors","subscribers_url":"https://api.github.com/repos/nf1213/countries/subscribers","subscription_url":"https://api.github.com/repos/nf1213/countries/subscription","commits_url":"https://api.github.com/repos/nf1213/countries/commits{/sha}","git_commits_url":"https://api.github.com/repos/nf1213/countries/git/commits{/sha}","comments_url":"https://api.github.com/repos/nf1213/countries/comments{/number}","issue_comment_url":"https://api.github.com/repos/nf1213/countries/issues/comments/{number}","contents_url":"https://api.github.com/repos/nf1213/countries/contents/{+path}","compare_url":"https://api.github.com/repos/nf1213/countries/compare/{base}...{head}","merges_url":"https://api.github.com/repos/nf1213/countries/merges","archive_url":"https://api.github.com/repos/nf1213/countries/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/nf1213/countries/downloads","issues_url":"https://api.github.com/repos/nf1213/countries/issues{/number}","pulls_url":"https://api.github.com/repos/nf1213/countries/pulls{/number}","milestones_url":"https://api.github.com/repos/nf1213/countries/milestones{/number}","notifications_url":"https://api.github.com/repos/nf1213/countries/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/nf1213/countries/labels{/name}","releases_url":"https://api.github.com/repos/nf1213/countries/releases{/id}","created_at":"2014-12-29T19:38:48Z","updated_at":"2015-01-07T19:18:13Z","pushed_at":"2015-01-07T19:46:15Z","git_url":"git://github.com/nf1213/countries.git","ssh_url":"git@github.com:nf1213/countries.git","clone_url":"https://github.com/nf1213/countries.git","svn_url":"https://github.com/nf1213/countries","homepage":"https://immense-oasis-2395.herokuapp.com/","size":3276,"stargazers_count":1,"watchers_count":1,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":6,"forks":0,"open_issues":6,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/nf1213/countries/pulls/29"},"html":{"href":"https://github.com/nf1213/countries/pull/29"},"issue":{"href":"https://api.github.com/repos/nf1213/countries/issues/29"},"comments":{"href":"https://api.github.com/repos/nf1213/countries/issues/29/comments"},"review_comments":{"href":"https://api.github.com/repos/nf1213/countries/pulls/29/comments"},"review_comment":{"href":"https://api.github.com/repos/nf1213/countries/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/nf1213/countries/pulls/29/commits"},"statuses":{"href":"https://api.github.com/repos/nf1213/countries/statuses/b297234c59dcd2217e804dac815a028aff9a379d"}}}}