{"action":"created","comment":{"url":"https://api.github.com/repos/alliesground/myflix/pulls/comments/33146715","id":33146715,"diff_hunk":"@@ -9,7 +9,7 @@ def create\n     params[:invitation].merge!(inviter_id: current_user.id)\n     @invitation = Invitation.new(invitation_params)\n     if @invitation.save\n-      UserMailer.delay.send_friend_invitation(@invitation)\n+      UserMailer.send_friend_invitation(@invitation.id).deliver","path":"app/controllers/invitations_controller.rb","position":5,"original_position":5,"commit_id":"8611c63bfe8f7b12a6c2be0d8a9c815b7c6c428b","original_commit_id":"8611c63bfe8f7b12a6c2be0d8a9c815b7c6c428b","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":"You should send the invitation email via background jobs. This was not the root of your issues before.","created_at":"2015-06-24T13:28:32Z","updated_at":"2015-06-24T13:28:32Z","html_url":"https://github.com/alliesground/myflix/pull/8#discussion_r33146715","pull_request_url":"https://api.github.com/repos/alliesground/myflix/pulls/8","_links":{"self":{"href":"https://api.github.com/repos/alliesground/myflix/pulls/comments/33146715"},"html":{"href":"https://github.com/alliesground/myflix/pull/8#discussion_r33146715"},"pull_request":{"href":"https://api.github.com/repos/alliesground/myflix/pulls/8"}}},"pull_request":{"url":"https://api.github.com/repos/alliesground/myflix/pulls/8","id":38412378,"html_url":"https://github.com/alliesground/myflix/pull/8","diff_url":"https://github.com/alliesground/myflix/pull/8.diff","patch_url":"https://github.com/alliesground/myflix/pull/8.patch","issue_url":"https://api.github.com/repos/alliesground/myflix/issues/8","number":8,"state":"open","locked":false,"title":"Invited User Paid Registration","user":{"login":"alliesground","id":4899027,"avatar_url":"https://avatars.githubusercontent.com/u/4899027?v=3","gravatar_id":"","url":"https://api.github.com/users/alliesground","html_url":"https://github.com/alliesground","followers_url":"https://api.github.com/users/alliesground/followers","following_url":"https://api.github.com/users/alliesground/following{/other_user}","gists_url":"https://api.github.com/users/alliesground/gists{/gist_id}","starred_url":"https://api.github.com/users/alliesground/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alliesground/subscriptions","organizations_url":"https://api.github.com/users/alliesground/orgs","repos_url":"https://api.github.com/users/alliesground/repos","events_url":"https://api.github.com/users/alliesground/events{/privacy}","received_events_url":"https://api.github.com/users/alliesground/received_events","type":"User","site_admin":false},"body":"Hi,\r\nI got an error while testing the feature spec for invited user paid registration. First i had some weird errors like, token generated (before creating a user), would get expired, as a result the test would get redirected to **token expired page**, that error was solved by changing the capybara port for test.\r\n\r\nNow in my local feature test, the users is not getting created, so when the test tries to login the new registered users, it gives invalid email and password error. But when i place **binding.pry** immediately after clicking **Sign up** then the test gets halted for few seconds and during that time the user gets created, and login successfully.\r\n\r\nPlus in Circle CI i'm getting this error (I have provided the invironment variable).\r\n\r\n```\r\nFailures:\r\n\r\n  1) Friend invitation invites a friend for registration through email\r\n     Failure/Error: Unable to find matching line from backtrace\r\n     Stripe::InvalidRequestError:\r\n       Must provide source or customer.\r\n     # ./app/models/stripe_wrapper.rb:12:in `create'\r\n     # ./app/controllers/users_controller.rb:28:in `create'\r\n```\r\n\r\n","created_at":"2015-06-24T06:50:26Z","updated_at":"2015-06-24T13:28:32Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/alliesground/myflix/pulls/8/commits","review_comments_url":"https://api.github.com/repos/alliesground/myflix/pulls/8/comments","review_comment_url":"https://api.github.com/repos/alliesground/myflix/pulls/comments{/number}","comments_url":"https://api.github.com/repos/alliesground/myflix/issues/8/comments","statuses_url":"https://api.github.com/repos/alliesground/myflix/statuses/8611c63bfe8f7b12a6c2be0d8a9c815b7c6c428b","head":{"label":"alliesground:payment","ref":"payment","sha":"8611c63bfe8f7b12a6c2be0d8a9c815b7c6c428b","user":{"login":"alliesground","id":4899027,"avatar_url":"https://avatars.githubusercontent.com/u/4899027?v=3","gravatar_id":"","url":"https://api.github.com/users/alliesground","html_url":"https://github.com/alliesground","followers_url":"https://api.github.com/users/alliesground/followers","following_url":"https://api.github.com/users/alliesground/following{/other_user}","gists_url":"https://api.github.com/users/alliesground/gists{/gist_id}","starred_url":"https://api.github.com/users/alliesground/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alliesground/subscriptions","organizations_url":"https://api.github.com/users/alliesground/orgs","repos_url":"https://api.github.com/users/alliesground/repos","events_url":"https://api.github.com/users/alliesground/events{/privacy}","received_events_url":"https://api.github.com/users/alliesground/received_events","type":"User","site_admin":false},"repo":{"id":36212081,"name":"myflix","full_name":"alliesground/myflix","owner":{"login":"alliesground","id":4899027,"avatar_url":"https://avatars.githubusercontent.com/u/4899027?v=3","gravatar_id":"","url":"https://api.github.com/users/alliesground","html_url":"https://github.com/alliesground","followers_url":"https://api.github.com/users/alliesground/followers","following_url":"https://api.github.com/users/alliesground/following{/other_user}","gists_url":"https://api.github.com/users/alliesground/gists{/gist_id}","starred_url":"https://api.github.com/users/alliesground/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alliesground/subscriptions","organizations_url":"https://api.github.com/users/alliesground/orgs","repos_url":"https://api.github.com/users/alliesground/repos","events_url":"https://api.github.com/users/alliesground/events{/privacy}","received_events_url":"https://api.github.com/users/alliesground/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/alliesground/myflix","description":"gotealeaf final course","fork":false,"url":"https://api.github.com/repos/alliesground/myflix","forks_url":"https://api.github.com/repos/alliesground/myflix/forks","keys_url":"https://api.github.com/repos/alliesground/myflix/keys{/key_id}","collaborators_url":"https://api.github.com/repos/alliesground/myflix/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/alliesground/myflix/teams","hooks_url":"https://api.github.com/repos/alliesground/myflix/hooks","issue_events_url":"https://api.github.com/repos/alliesground/myflix/issues/events{/number}","events_url":"https://api.github.com/repos/alliesground/myflix/events","assignees_url":"https://api.github.com/repos/alliesground/myflix/assignees{/user}","branches_url":"https://api.github.com/repos/alliesground/myflix/branches{/branch}","tags_url":"https://api.github.com/repos/alliesground/myflix/tags","blobs_url":"https://api.github.com/repos/alliesground/myflix/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/alliesground/myflix/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/alliesground/myflix/git/refs{/sha}","trees_url":"https://api.github.com/repos/alliesground/myflix/git/trees{/sha}","statuses_url":"https://api.github.com/repos/alliesground/myflix/statuses/{sha}","languages_url":"https://api.github.com/repos/alliesground/myflix/languages","stargazers_url":"https://api.github.com/repos/alliesground/myflix/stargazers","contributors_url":"https://api.github.com/repos/alliesground/myflix/contributors","subscribers_url":"https://api.github.com/repos/alliesground/myflix/subscribers","subscription_url":"https://api.github.com/repos/alliesground/myflix/subscription","commits_url":"https://api.github.com/repos/alliesground/myflix/commits{/sha}","git_commits_url":"https://api.github.com/repos/alliesground/myflix/git/commits{/sha}","comments_url":"https://api.github.com/repos/alliesground/myflix/comments{/number}","issue_comment_url":"https://api.github.com/repos/alliesground/myflix/issues/comments{/number}","contents_url":"https://api.github.com/repos/alliesground/myflix/contents/{+path}","compare_url":"https://api.github.com/repos/alliesground/myflix/compare/{base}...{head}","merges_url":"https://api.github.com/repos/alliesground/myflix/merges","archive_url":"https://api.github.com/repos/alliesground/myflix/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/alliesground/myflix/downloads","issues_url":"https://api.github.com/repos/alliesground/myflix/issues{/number}","pulls_url":"https://api.github.com/repos/alliesground/myflix/pulls{/number}","milestones_url":"https://api.github.com/repos/alliesground/myflix/milestones{/number}","notifications_url":"https://api.github.com/repos/alliesground/myflix/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/alliesground/myflix/labels{/name}","releases_url":"https://api.github.com/repos/alliesground/myflix/releases{/id}","created_at":"2015-05-25T05:38:15Z","updated_at":"2015-06-18T08:20:02Z","pushed_at":"2015-06-24T06:50:26Z","git_url":"git://github.com/alliesground/myflix.git","ssh_url":"git@github.com:alliesground/myflix.git","clone_url":"https://github.com/alliesground/myflix.git","svn_url":"https://github.com/alliesground/myflix","homepage":null,"size":1004,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","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":"alliesground:staging","ref":"staging","sha":"c142e040875be111615266bed37b1abfcf138414","user":{"login":"alliesground","id":4899027,"avatar_url":"https://avatars.githubusercontent.com/u/4899027?v=3","gravatar_id":"","url":"https://api.github.com/users/alliesground","html_url":"https://github.com/alliesground","followers_url":"https://api.github.com/users/alliesground/followers","following_url":"https://api.github.com/users/alliesground/following{/other_user}","gists_url":"https://api.github.com/users/alliesground/gists{/gist_id}","starred_url":"https://api.github.com/users/alliesground/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alliesground/subscriptions","organizations_url":"https://api.github.com/users/alliesground/orgs","repos_url":"https://api.github.com/users/alliesground/repos","events_url":"https://api.github.com/users/alliesground/events{/privacy}","received_events_url":"https://api.github.com/users/alliesground/received_events","type":"User","site_admin":false},"repo":{"id":36212081,"name":"myflix","full_name":"alliesground/myflix","owner":{"login":"alliesground","id":4899027,"avatar_url":"https://avatars.githubusercontent.com/u/4899027?v=3","gravatar_id":"","url":"https://api.github.com/users/alliesground","html_url":"https://github.com/alliesground","followers_url":"https://api.github.com/users/alliesground/followers","following_url":"https://api.github.com/users/alliesground/following{/other_user}","gists_url":"https://api.github.com/users/alliesground/gists{/gist_id}","starred_url":"https://api.github.com/users/alliesground/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alliesground/subscriptions","organizations_url":"https://api.github.com/users/alliesground/orgs","repos_url":"https://api.github.com/users/alliesground/repos","events_url":"https://api.github.com/users/alliesground/events{/privacy}","received_events_url":"https://api.github.com/users/alliesground/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/alliesground/myflix","description":"gotealeaf final course","fork":false,"url":"https://api.github.com/repos/alliesground/myflix","forks_url":"https://api.github.com/repos/alliesground/myflix/forks","keys_url":"https://api.github.com/repos/alliesground/myflix/keys{/key_id}","collaborators_url":"https://api.github.com/repos/alliesground/myflix/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/alliesground/myflix/teams","hooks_url":"https://api.github.com/repos/alliesground/myflix/hooks","issue_events_url":"https://api.github.com/repos/alliesground/myflix/issues/events{/number}","events_url":"https://api.github.com/repos/alliesground/myflix/events","assignees_url":"https://api.github.com/repos/alliesground/myflix/assignees{/user}","branches_url":"https://api.github.com/repos/alliesground/myflix/branches{/branch}","tags_url":"https://api.github.com/repos/alliesground/myflix/tags","blobs_url":"https://api.github.com/repos/alliesground/myflix/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/alliesground/myflix/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/alliesground/myflix/git/refs{/sha}","trees_url":"https://api.github.com/repos/alliesground/myflix/git/trees{/sha}","statuses_url":"https://api.github.com/repos/alliesground/myflix/statuses/{sha}","languages_url":"https://api.github.com/repos/alliesground/myflix/languages","stargazers_url":"https://api.github.com/repos/alliesground/myflix/stargazers","contributors_url":"https://api.github.com/repos/alliesground/myflix/contributors","subscribers_url":"https://api.github.com/repos/alliesground/myflix/subscribers","subscription_url":"https://api.github.com/repos/alliesground/myflix/subscription","commits_url":"https://api.github.com/repos/alliesground/myflix/commits{/sha}","git_commits_url":"https://api.github.com/repos/alliesground/myflix/git/commits{/sha}","comments_url":"https://api.github.com/repos/alliesground/myflix/comments{/number}","issue_comment_url":"https://api.github.com/repos/alliesground/myflix/issues/comments{/number}","contents_url":"https://api.github.com/repos/alliesground/myflix/contents/{+path}","compare_url":"https://api.github.com/repos/alliesground/myflix/compare/{base}...{head}","merges_url":"https://api.github.com/repos/alliesground/myflix/merges","archive_url":"https://api.github.com/repos/alliesground/myflix/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/alliesground/myflix/downloads","issues_url":"https://api.github.com/repos/alliesground/myflix/issues{/number}","pulls_url":"https://api.github.com/repos/alliesground/myflix/pulls{/number}","milestones_url":"https://api.github.com/repos/alliesground/myflix/milestones{/number}","notifications_url":"https://api.github.com/repos/alliesground/myflix/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/alliesground/myflix/labels{/name}","releases_url":"https://api.github.com/repos/alliesground/myflix/releases{/id}","created_at":"2015-05-25T05:38:15Z","updated_at":"2015-06-18T08:20:02Z","pushed_at":"2015-06-24T06:50:26Z","git_url":"git://github.com/alliesground/myflix.git","ssh_url":"git@github.com:alliesground/myflix.git","clone_url":"https://github.com/alliesground/myflix.git","svn_url":"https://github.com/alliesground/myflix","homepage":null,"size":1004,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","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/alliesground/myflix/pulls/8"},"html":{"href":"https://github.com/alliesground/myflix/pull/8"},"issue":{"href":"https://api.github.com/repos/alliesground/myflix/issues/8"},"comments":{"href":"https://api.github.com/repos/alliesground/myflix/issues/8/comments"},"review_comments":{"href":"https://api.github.com/repos/alliesground/myflix/pulls/8/comments"},"review_comment":{"href":"https://api.github.com/repos/alliesground/myflix/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/alliesground/myflix/pulls/8/commits"},"statuses":{"href":"https://api.github.com/repos/alliesground/myflix/statuses/8611c63bfe8f7b12a6c2be0d8a9c815b7c6c428b"}}}}