{"action":"created","comment":{"url":"https://api.github.com/repos/tomtomecek/quizzer/pulls/comments/24717245","id":24717245,"diff_hunk":"@@ -134,6 +136,22 @@\n         it \"creates paid enrollment\" do\n           expect(Enrollment.first).to be_paid\n         end\n+\n+        it \"sends out an email\" do\n+          expect(ActionMailer::Base.deliveries).to_not be_empty\n+        end\n+\n+        it \"sends out email to student\" do\n+          expect(mail.to).to eq [current_user.email]\n+        end\n+\n+        it \"sends out email with correct\" do\n+          email = mail.body.encoded\n+          expect(email).to include current_user.username\n+          expect(email).to include \"We confirm the payment - $19.99\"\n+          expect(email).to include ruby.title\n+          expect(email).to include \"Certification will be sent only upon successful completion of exams.\"","path":"spec/controllers/enrollments_controller_spec.rb","position":34,"original_position":34,"commit_id":"5015c5e43757c3ce53e61c69252a55e8091199b5","original_commit_id":"5015c5e43757c3ce53e61c69252a55e8091199b5","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":"Line is too long. [105/80]","created_at":"2015-02-14T20:48:44Z","updated_at":"2015-02-14T20:48:44Z","html_url":"https://github.com/tomtomecek/quizzer/pull/54#discussion_r24717245","pull_request_url":"https://api.github.com/repos/tomtomecek/quizzer/pulls/54","_links":{"self":{"href":"https://api.github.com/repos/tomtomecek/quizzer/pulls/comments/24717245"},"html":{"href":"https://github.com/tomtomecek/quizzer/pull/54#discussion_r24717245"},"pull_request":{"href":"https://api.github.com/repos/tomtomecek/quizzer/pulls/54"}}},"pull_request":{"url":"https://api.github.com/repos/tomtomecek/quizzer/pulls/54","id":29325375,"html_url":"https://github.com/tomtomecek/quizzer/pull/54","diff_url":"https://github.com/tomtomecek/quizzer/pull/54.diff","patch_url":"https://github.com/tomtomecek/quizzer/pull/54.patch","issue_url":"https://api.github.com/repos/tomtomecek/quizzer/issues/54","number":54,"state":"open","locked":false,"title":"Feature/email enroll","user":{"login":"tomtomecek","id":7385469,"avatar_url":"https://avatars.githubusercontent.com/u/7385469?v=3","gravatar_id":"","url":"https://api.github.com/users/tomtomecek","html_url":"https://github.com/tomtomecek","followers_url":"https://api.github.com/users/tomtomecek/followers","following_url":"https://api.github.com/users/tomtomecek/following{/other_user}","gists_url":"https://api.github.com/users/tomtomecek/gists{/gist_id}","starred_url":"https://api.github.com/users/tomtomecek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tomtomecek/subscriptions","organizations_url":"https://api.github.com/users/tomtomecek/orgs","repos_url":"https://api.github.com/users/tomtomecek/repos","events_url":"https://api.github.com/users/tomtomecek/events{/privacy}","received_events_url":"https://api.github.com/users/tomtomecek/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-02-14T20:48:39Z","updated_at":"2015-02-14T20:48:44Z","closed_at":null,"merged_at":null,"merge_commit_sha":"1686128d4cbb7cf71ff3495d79cf971aac47ee24","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/tomtomecek/quizzer/pulls/54/commits","review_comments_url":"https://api.github.com/repos/tomtomecek/quizzer/pulls/54/comments","review_comment_url":"https://api.github.com/repos/tomtomecek/quizzer/pulls/comments/{number}","comments_url":"https://api.github.com/repos/tomtomecek/quizzer/issues/54/comments","statuses_url":"https://api.github.com/repos/tomtomecek/quizzer/statuses/5015c5e43757c3ce53e61c69252a55e8091199b5","head":{"label":"tomtomecek:feature/email_enroll","ref":"feature/email_enroll","sha":"5015c5e43757c3ce53e61c69252a55e8091199b5","user":{"login":"tomtomecek","id":7385469,"avatar_url":"https://avatars.githubusercontent.com/u/7385469?v=3","gravatar_id":"","url":"https://api.github.com/users/tomtomecek","html_url":"https://github.com/tomtomecek","followers_url":"https://api.github.com/users/tomtomecek/followers","following_url":"https://api.github.com/users/tomtomecek/following{/other_user}","gists_url":"https://api.github.com/users/tomtomecek/gists{/gist_id}","starred_url":"https://api.github.com/users/tomtomecek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tomtomecek/subscriptions","organizations_url":"https://api.github.com/users/tomtomecek/orgs","repos_url":"https://api.github.com/users/tomtomecek/repos","events_url":"https://api.github.com/users/tomtomecek/events{/privacy}","received_events_url":"https://api.github.com/users/tomtomecek/received_events","type":"User","site_admin":false},"repo":{"id":29296016,"name":"quizzer","full_name":"tomtomecek/quizzer","owner":{"login":"tomtomecek","id":7385469,"avatar_url":"https://avatars.githubusercontent.com/u/7385469?v=3","gravatar_id":"","url":"https://api.github.com/users/tomtomecek","html_url":"https://github.com/tomtomecek","followers_url":"https://api.github.com/users/tomtomecek/followers","following_url":"https://api.github.com/users/tomtomecek/following{/other_user}","gists_url":"https://api.github.com/users/tomtomecek/gists{/gist_id}","starred_url":"https://api.github.com/users/tomtomecek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tomtomecek/subscriptions","organizations_url":"https://api.github.com/users/tomtomecek/orgs","repos_url":"https://api.github.com/users/tomtomecek/repos","events_url":"https://api.github.com/users/tomtomecek/events{/privacy}","received_events_url":"https://api.github.com/users/tomtomecek/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/tomtomecek/quizzer","description":"Tealeaf Academy Quiz app dealing with missing exam executor.","fork":false,"url":"https://api.github.com/repos/tomtomecek/quizzer","forks_url":"https://api.github.com/repos/tomtomecek/quizzer/forks","keys_url":"https://api.github.com/repos/tomtomecek/quizzer/keys{/key_id}","collaborators_url":"https://api.github.com/repos/tomtomecek/quizzer/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/tomtomecek/quizzer/teams","hooks_url":"https://api.github.com/repos/tomtomecek/quizzer/hooks","issue_events_url":"https://api.github.com/repos/tomtomecek/quizzer/issues/events{/number}","events_url":"https://api.github.com/repos/tomtomecek/quizzer/events","assignees_url":"https://api.github.com/repos/tomtomecek/quizzer/assignees{/user}","branches_url":"https://api.github.com/repos/tomtomecek/quizzer/branches{/branch}","tags_url":"https://api.github.com/repos/tomtomecek/quizzer/tags","blobs_url":"https://api.github.com/repos/tomtomecek/quizzer/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/tomtomecek/quizzer/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/tomtomecek/quizzer/git/refs{/sha}","trees_url":"https://api.github.com/repos/tomtomecek/quizzer/git/trees{/sha}","statuses_url":"https://api.github.com/repos/tomtomecek/quizzer/statuses/{sha}","languages_url":"https://api.github.com/repos/tomtomecek/quizzer/languages","stargazers_url":"https://api.github.com/repos/tomtomecek/quizzer/stargazers","contributors_url":"https://api.github.com/repos/tomtomecek/quizzer/contributors","subscribers_url":"https://api.github.com/repos/tomtomecek/quizzer/subscribers","subscription_url":"https://api.github.com/repos/tomtomecek/quizzer/subscription","commits_url":"https://api.github.com/repos/tomtomecek/quizzer/commits{/sha}","git_commits_url":"https://api.github.com/repos/tomtomecek/quizzer/git/commits{/sha}","comments_url":"https://api.github.com/repos/tomtomecek/quizzer/comments{/number}","issue_comment_url":"https://api.github.com/repos/tomtomecek/quizzer/issues/comments/{number}","contents_url":"https://api.github.com/repos/tomtomecek/quizzer/contents/{+path}","compare_url":"https://api.github.com/repos/tomtomecek/quizzer/compare/{base}...{head}","merges_url":"https://api.github.com/repos/tomtomecek/quizzer/merges","archive_url":"https://api.github.com/repos/tomtomecek/quizzer/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/tomtomecek/quizzer/downloads","issues_url":"https://api.github.com/repos/tomtomecek/quizzer/issues{/number}","pulls_url":"https://api.github.com/repos/tomtomecek/quizzer/pulls{/number}","milestones_url":"https://api.github.com/repos/tomtomecek/quizzer/milestones{/number}","notifications_url":"https://api.github.com/repos/tomtomecek/quizzer/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/tomtomecek/quizzer/labels{/name}","releases_url":"https://api.github.com/repos/tomtomecek/quizzer/releases{/id}","created_at":"2015-01-15T12:15:54Z","updated_at":"2015-02-14T16:47:16Z","pushed_at":"2015-02-14T20:41:59Z","git_url":"git://github.com/tomtomecek/quizzer.git","ssh_url":"git@github.com:tomtomecek/quizzer.git","clone_url":"https://github.com/tomtomecek/quizzer.git","svn_url":"https://github.com/tomtomecek/quizzer","homepage":null,"size":1244,"stargazers_count":1,"watchers_count":1,"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":1,"default_branch":"master"}},"base":{"label":"tomtomecek:master","ref":"master","sha":"91b7fdc8c8cbf47d6c1a66bac751ac3c055d1f1e","user":{"login":"tomtomecek","id":7385469,"avatar_url":"https://avatars.githubusercontent.com/u/7385469?v=3","gravatar_id":"","url":"https://api.github.com/users/tomtomecek","html_url":"https://github.com/tomtomecek","followers_url":"https://api.github.com/users/tomtomecek/followers","following_url":"https://api.github.com/users/tomtomecek/following{/other_user}","gists_url":"https://api.github.com/users/tomtomecek/gists{/gist_id}","starred_url":"https://api.github.com/users/tomtomecek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tomtomecek/subscriptions","organizations_url":"https://api.github.com/users/tomtomecek/orgs","repos_url":"https://api.github.com/users/tomtomecek/repos","events_url":"https://api.github.com/users/tomtomecek/events{/privacy}","received_events_url":"https://api.github.com/users/tomtomecek/received_events","type":"User","site_admin":false},"repo":{"id":29296016,"name":"quizzer","full_name":"tomtomecek/quizzer","owner":{"login":"tomtomecek","id":7385469,"avatar_url":"https://avatars.githubusercontent.com/u/7385469?v=3","gravatar_id":"","url":"https://api.github.com/users/tomtomecek","html_url":"https://github.com/tomtomecek","followers_url":"https://api.github.com/users/tomtomecek/followers","following_url":"https://api.github.com/users/tomtomecek/following{/other_user}","gists_url":"https://api.github.com/users/tomtomecek/gists{/gist_id}","starred_url":"https://api.github.com/users/tomtomecek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tomtomecek/subscriptions","organizations_url":"https://api.github.com/users/tomtomecek/orgs","repos_url":"https://api.github.com/users/tomtomecek/repos","events_url":"https://api.github.com/users/tomtomecek/events{/privacy}","received_events_url":"https://api.github.com/users/tomtomecek/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/tomtomecek/quizzer","description":"Tealeaf Academy Quiz app dealing with missing exam executor.","fork":false,"url":"https://api.github.com/repos/tomtomecek/quizzer","forks_url":"https://api.github.com/repos/tomtomecek/quizzer/forks","keys_url":"https://api.github.com/repos/tomtomecek/quizzer/keys{/key_id}","collaborators_url":"https://api.github.com/repos/tomtomecek/quizzer/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/tomtomecek/quizzer/teams","hooks_url":"https://api.github.com/repos/tomtomecek/quizzer/hooks","issue_events_url":"https://api.github.com/repos/tomtomecek/quizzer/issues/events{/number}","events_url":"https://api.github.com/repos/tomtomecek/quizzer/events","assignees_url":"https://api.github.com/repos/tomtomecek/quizzer/assignees{/user}","branches_url":"https://api.github.com/repos/tomtomecek/quizzer/branches{/branch}","tags_url":"https://api.github.com/repos/tomtomecek/quizzer/tags","blobs_url":"https://api.github.com/repos/tomtomecek/quizzer/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/tomtomecek/quizzer/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/tomtomecek/quizzer/git/refs{/sha}","trees_url":"https://api.github.com/repos/tomtomecek/quizzer/git/trees{/sha}","statuses_url":"https://api.github.com/repos/tomtomecek/quizzer/statuses/{sha}","languages_url":"https://api.github.com/repos/tomtomecek/quizzer/languages","stargazers_url":"https://api.github.com/repos/tomtomecek/quizzer/stargazers","contributors_url":"https://api.github.com/repos/tomtomecek/quizzer/contributors","subscribers_url":"https://api.github.com/repos/tomtomecek/quizzer/subscribers","subscription_url":"https://api.github.com/repos/tomtomecek/quizzer/subscription","commits_url":"https://api.github.com/repos/tomtomecek/quizzer/commits{/sha}","git_commits_url":"https://api.github.com/repos/tomtomecek/quizzer/git/commits{/sha}","comments_url":"https://api.github.com/repos/tomtomecek/quizzer/comments{/number}","issue_comment_url":"https://api.github.com/repos/tomtomecek/quizzer/issues/comments/{number}","contents_url":"https://api.github.com/repos/tomtomecek/quizzer/contents/{+path}","compare_url":"https://api.github.com/repos/tomtomecek/quizzer/compare/{base}...{head}","merges_url":"https://api.github.com/repos/tomtomecek/quizzer/merges","archive_url":"https://api.github.com/repos/tomtomecek/quizzer/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/tomtomecek/quizzer/downloads","issues_url":"https://api.github.com/repos/tomtomecek/quizzer/issues{/number}","pulls_url":"https://api.github.com/repos/tomtomecek/quizzer/pulls{/number}","milestones_url":"https://api.github.com/repos/tomtomecek/quizzer/milestones{/number}","notifications_url":"https://api.github.com/repos/tomtomecek/quizzer/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/tomtomecek/quizzer/labels{/name}","releases_url":"https://api.github.com/repos/tomtomecek/quizzer/releases{/id}","created_at":"2015-01-15T12:15:54Z","updated_at":"2015-02-14T16:47:16Z","pushed_at":"2015-02-14T20:41:59Z","git_url":"git://github.com/tomtomecek/quizzer.git","ssh_url":"git@github.com:tomtomecek/quizzer.git","clone_url":"https://github.com/tomtomecek/quizzer.git","svn_url":"https://github.com/tomtomecek/quizzer","homepage":null,"size":1244,"stargazers_count":1,"watchers_count":1,"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":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/tomtomecek/quizzer/pulls/54"},"html":{"href":"https://github.com/tomtomecek/quizzer/pull/54"},"issue":{"href":"https://api.github.com/repos/tomtomecek/quizzer/issues/54"},"comments":{"href":"https://api.github.com/repos/tomtomecek/quizzer/issues/54/comments"},"review_comments":{"href":"https://api.github.com/repos/tomtomecek/quizzer/pulls/54/comments"},"review_comment":{"href":"https://api.github.com/repos/tomtomecek/quizzer/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/tomtomecek/quizzer/pulls/54/commits"},"statuses":{"href":"https://api.github.com/repos/tomtomecek/quizzer/statuses/5015c5e43757c3ce53e61c69252a55e8091199b5"}}}}