{"action":"created","comment":{"url":"https://api.github.com/repos/highfidelity/fake_braintree/pulls/comments/35440713","id":35440713,"diff_hunk":"@@ -54,6 +54,32 @@\n     expect(result).to be_success\n   end\n \n+  it 'creates a credit card from payment method nonce in credit card hash' do\n+    nonce = FakeBraintree::PaymentMethod.tokenize_card({\n+      number: TEST_CC_NUMBER,\n+      expiration_date: '04/2016'\n+    })\n+    result = Braintree::Customer.create(\n+      credit_card: { payment_method_nonce: nonce }\n+    )\n+\n+    credit_cards = Braintree::Customer.find(result.customer.id).credit_cards\n+    expect(credit_cards.size).to eq 1\n+    expect(credit_cards.first.expiration_date).to eq '04/2016'","path":"spec/fake_braintree/customer_spec.rb","position":15,"original_position":15,"commit_id":"ded62a2108fb3ae28c747624561a621b949e01a5","original_commit_id":"ded62a2108fb3ae28c747624561a621b949e01a5","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":"Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping.","created_at":"2015-07-24T16:46:21Z","updated_at":"2015-07-24T16:46:21Z","html_url":"https://github.com/highfidelity/fake_braintree/pull/100#discussion_r35440713","pull_request_url":"https://api.github.com/repos/highfidelity/fake_braintree/pulls/100","_links":{"self":{"href":"https://api.github.com/repos/highfidelity/fake_braintree/pulls/comments/35440713"},"html":{"href":"https://github.com/highfidelity/fake_braintree/pull/100#discussion_r35440713"},"pull_request":{"href":"https://api.github.com/repos/highfidelity/fake_braintree/pulls/100"}}},"pull_request":{"url":"https://api.github.com/repos/highfidelity/fake_braintree/pulls/100","id":40733742,"html_url":"https://github.com/highfidelity/fake_braintree/pull/100","diff_url":"https://github.com/highfidelity/fake_braintree/pull/100.diff","patch_url":"https://github.com/highfidelity/fake_braintree/pull/100.patch","issue_url":"https://api.github.com/repos/highfidelity/fake_braintree/issues/100","number":100,"state":"open","locked":false,"title":"create payment method with customer","user":{"login":"wacii","id":4981770,"avatar_url":"https://avatars.githubusercontent.com/u/4981770?v=3","gravatar_id":"","url":"https://api.github.com/users/wacii","html_url":"https://github.com/wacii","followers_url":"https://api.github.com/users/wacii/followers","following_url":"https://api.github.com/users/wacii/following{/other_user}","gists_url":"https://api.github.com/users/wacii/gists{/gist_id}","starred_url":"https://api.github.com/users/wacii/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wacii/subscriptions","organizations_url":"https://api.github.com/users/wacii/orgs","repos_url":"https://api.github.com/users/wacii/repos","events_url":"https://api.github.com/users/wacii/events{/privacy}","received_events_url":"https://api.github.com/users/wacii/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-07-24T00:52:18Z","updated_at":"2015-07-24T16:46:21Z","closed_at":null,"merged_at":null,"merge_commit_sha":"004014c9844bf7f0dc4d9a6aef309210be639d5a","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/highfidelity/fake_braintree/pulls/100/commits","review_comments_url":"https://api.github.com/repos/highfidelity/fake_braintree/pulls/100/comments","review_comment_url":"https://api.github.com/repos/highfidelity/fake_braintree/pulls/comments{/number}","comments_url":"https://api.github.com/repos/highfidelity/fake_braintree/issues/100/comments","statuses_url":"https://api.github.com/repos/highfidelity/fake_braintree/statuses/ded62a2108fb3ae28c747624561a621b949e01a5","head":{"label":"wacii:improve-customer-creation","ref":"improve-customer-creation","sha":"ded62a2108fb3ae28c747624561a621b949e01a5","user":{"login":"wacii","id":4981770,"avatar_url":"https://avatars.githubusercontent.com/u/4981770?v=3","gravatar_id":"","url":"https://api.github.com/users/wacii","html_url":"https://github.com/wacii","followers_url":"https://api.github.com/users/wacii/followers","following_url":"https://api.github.com/users/wacii/following{/other_user}","gists_url":"https://api.github.com/users/wacii/gists{/gist_id}","starred_url":"https://api.github.com/users/wacii/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wacii/subscriptions","organizations_url":"https://api.github.com/users/wacii/orgs","repos_url":"https://api.github.com/users/wacii/repos","events_url":"https://api.github.com/users/wacii/events{/privacy}","received_events_url":"https://api.github.com/users/wacii/received_events","type":"User","site_admin":false},"repo":{"id":28766413,"name":"fake_braintree","full_name":"wacii/fake_braintree","owner":{"login":"wacii","id":4981770,"avatar_url":"https://avatars.githubusercontent.com/u/4981770?v=3","gravatar_id":"","url":"https://api.github.com/users/wacii","html_url":"https://github.com/wacii","followers_url":"https://api.github.com/users/wacii/followers","following_url":"https://api.github.com/users/wacii/following{/other_user}","gists_url":"https://api.github.com/users/wacii/gists{/gist_id}","starred_url":"https://api.github.com/users/wacii/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wacii/subscriptions","organizations_url":"https://api.github.com/users/wacii/orgs","repos_url":"https://api.github.com/users/wacii/repos","events_url":"https://api.github.com/users/wacii/events{/privacy}","received_events_url":"https://api.github.com/users/wacii/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/wacii/fake_braintree","description":"A Braintree fake so that you can avoid hitting Braintree servers in tests.","fork":true,"url":"https://api.github.com/repos/wacii/fake_braintree","forks_url":"https://api.github.com/repos/wacii/fake_braintree/forks","keys_url":"https://api.github.com/repos/wacii/fake_braintree/keys{/key_id}","collaborators_url":"https://api.github.com/repos/wacii/fake_braintree/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/wacii/fake_braintree/teams","hooks_url":"https://api.github.com/repos/wacii/fake_braintree/hooks","issue_events_url":"https://api.github.com/repos/wacii/fake_braintree/issues/events{/number}","events_url":"https://api.github.com/repos/wacii/fake_braintree/events","assignees_url":"https://api.github.com/repos/wacii/fake_braintree/assignees{/user}","branches_url":"https://api.github.com/repos/wacii/fake_braintree/branches{/branch}","tags_url":"https://api.github.com/repos/wacii/fake_braintree/tags","blobs_url":"https://api.github.com/repos/wacii/fake_braintree/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/wacii/fake_braintree/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/wacii/fake_braintree/git/refs{/sha}","trees_url":"https://api.github.com/repos/wacii/fake_braintree/git/trees{/sha}","statuses_url":"https://api.github.com/repos/wacii/fake_braintree/statuses/{sha}","languages_url":"https://api.github.com/repos/wacii/fake_braintree/languages","stargazers_url":"https://api.github.com/repos/wacii/fake_braintree/stargazers","contributors_url":"https://api.github.com/repos/wacii/fake_braintree/contributors","subscribers_url":"https://api.github.com/repos/wacii/fake_braintree/subscribers","subscription_url":"https://api.github.com/repos/wacii/fake_braintree/subscription","commits_url":"https://api.github.com/repos/wacii/fake_braintree/commits{/sha}","git_commits_url":"https://api.github.com/repos/wacii/fake_braintree/git/commits{/sha}","comments_url":"https://api.github.com/repos/wacii/fake_braintree/comments{/number}","issue_comment_url":"https://api.github.com/repos/wacii/fake_braintree/issues/comments{/number}","contents_url":"https://api.github.com/repos/wacii/fake_braintree/contents/{+path}","compare_url":"https://api.github.com/repos/wacii/fake_braintree/compare/{base}...{head}","merges_url":"https://api.github.com/repos/wacii/fake_braintree/merges","archive_url":"https://api.github.com/repos/wacii/fake_braintree/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/wacii/fake_braintree/downloads","issues_url":"https://api.github.com/repos/wacii/fake_braintree/issues{/number}","pulls_url":"https://api.github.com/repos/wacii/fake_braintree/pulls{/number}","milestones_url":"https://api.github.com/repos/wacii/fake_braintree/milestones{/number}","notifications_url":"https://api.github.com/repos/wacii/fake_braintree/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/wacii/fake_braintree/labels{/name}","releases_url":"https://api.github.com/repos/wacii/fake_braintree/releases{/id}","created_at":"2015-01-04T06:31:45Z","updated_at":"2015-03-15T17:03:41Z","pushed_at":"2015-07-24T00:24:06Z","git_url":"git://github.com/wacii/fake_braintree.git","ssh_url":"git@github.com:wacii/fake_braintree.git","clone_url":"https://github.com/wacii/fake_braintree.git","svn_url":"https://github.com/wacii/fake_braintree","homepage":"","size":1080,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":0,"forks":1,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"highfidelity:master","ref":"master","sha":"5e6e38cd19d13aac31a7fedcbd0a7f1f3f5928ca","user":{"login":"highfidelity","id":1565370,"avatar_url":"https://avatars.githubusercontent.com/u/1565370?v=3","gravatar_id":"","url":"https://api.github.com/users/highfidelity","html_url":"https://github.com/highfidelity","followers_url":"https://api.github.com/users/highfidelity/followers","following_url":"https://api.github.com/users/highfidelity/following{/other_user}","gists_url":"https://api.github.com/users/highfidelity/gists{/gist_id}","starred_url":"https://api.github.com/users/highfidelity/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/highfidelity/subscriptions","organizations_url":"https://api.github.com/users/highfidelity/orgs","repos_url":"https://api.github.com/users/highfidelity/repos","events_url":"https://api.github.com/users/highfidelity/events{/privacy}","received_events_url":"https://api.github.com/users/highfidelity/received_events","type":"Organization","site_admin":false},"repo":{"id":2236094,"name":"fake_braintree","full_name":"highfidelity/fake_braintree","owner":{"login":"highfidelity","id":1565370,"avatar_url":"https://avatars.githubusercontent.com/u/1565370?v=3","gravatar_id":"","url":"https://api.github.com/users/highfidelity","html_url":"https://github.com/highfidelity","followers_url":"https://api.github.com/users/highfidelity/followers","following_url":"https://api.github.com/users/highfidelity/following{/other_user}","gists_url":"https://api.github.com/users/highfidelity/gists{/gist_id}","starred_url":"https://api.github.com/users/highfidelity/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/highfidelity/subscriptions","organizations_url":"https://api.github.com/users/highfidelity/orgs","repos_url":"https://api.github.com/users/highfidelity/repos","events_url":"https://api.github.com/users/highfidelity/events{/privacy}","received_events_url":"https://api.github.com/users/highfidelity/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/highfidelity/fake_braintree","description":"A Braintree fake so that you can avoid hitting Braintree servers in tests.","fork":false,"url":"https://api.github.com/repos/highfidelity/fake_braintree","forks_url":"https://api.github.com/repos/highfidelity/fake_braintree/forks","keys_url":"https://api.github.com/repos/highfidelity/fake_braintree/keys{/key_id}","collaborators_url":"https://api.github.com/repos/highfidelity/fake_braintree/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/highfidelity/fake_braintree/teams","hooks_url":"https://api.github.com/repos/highfidelity/fake_braintree/hooks","issue_events_url":"https://api.github.com/repos/highfidelity/fake_braintree/issues/events{/number}","events_url":"https://api.github.com/repos/highfidelity/fake_braintree/events","assignees_url":"https://api.github.com/repos/highfidelity/fake_braintree/assignees{/user}","branches_url":"https://api.github.com/repos/highfidelity/fake_braintree/branches{/branch}","tags_url":"https://api.github.com/repos/highfidelity/fake_braintree/tags","blobs_url":"https://api.github.com/repos/highfidelity/fake_braintree/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/highfidelity/fake_braintree/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/highfidelity/fake_braintree/git/refs{/sha}","trees_url":"https://api.github.com/repos/highfidelity/fake_braintree/git/trees{/sha}","statuses_url":"https://api.github.com/repos/highfidelity/fake_braintree/statuses/{sha}","languages_url":"https://api.github.com/repos/highfidelity/fake_braintree/languages","stargazers_url":"https://api.github.com/repos/highfidelity/fake_braintree/stargazers","contributors_url":"https://api.github.com/repos/highfidelity/fake_braintree/contributors","subscribers_url":"https://api.github.com/repos/highfidelity/fake_braintree/subscribers","subscription_url":"https://api.github.com/repos/highfidelity/fake_braintree/subscription","commits_url":"https://api.github.com/repos/highfidelity/fake_braintree/commits{/sha}","git_commits_url":"https://api.github.com/repos/highfidelity/fake_braintree/git/commits{/sha}","comments_url":"https://api.github.com/repos/highfidelity/fake_braintree/comments{/number}","issue_comment_url":"https://api.github.com/repos/highfidelity/fake_braintree/issues/comments{/number}","contents_url":"https://api.github.com/repos/highfidelity/fake_braintree/contents/{+path}","compare_url":"https://api.github.com/repos/highfidelity/fake_braintree/compare/{base}...{head}","merges_url":"https://api.github.com/repos/highfidelity/fake_braintree/merges","archive_url":"https://api.github.com/repos/highfidelity/fake_braintree/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/highfidelity/fake_braintree/downloads","issues_url":"https://api.github.com/repos/highfidelity/fake_braintree/issues{/number}","pulls_url":"https://api.github.com/repos/highfidelity/fake_braintree/pulls{/number}","milestones_url":"https://api.github.com/repos/highfidelity/fake_braintree/milestones{/number}","notifications_url":"https://api.github.com/repos/highfidelity/fake_braintree/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/highfidelity/fake_braintree/labels{/name}","releases_url":"https://api.github.com/repos/highfidelity/fake_braintree/releases{/id}","created_at":"2011-08-19T20:12:32Z","updated_at":"2015-07-14T07:41:10Z","pushed_at":"2015-07-24T00:52:18Z","git_url":"git://github.com/highfidelity/fake_braintree.git","ssh_url":"git@github.com:highfidelity/fake_braintree.git","clone_url":"https://github.com/highfidelity/fake_braintree.git","svn_url":"https://github.com/highfidelity/fake_braintree","homepage":"","size":1692,"stargazers_count":149,"watchers_count":149,"language":"CSS","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":65,"mirror_url":null,"open_issues_count":5,"forks":65,"open_issues":5,"watchers":149,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/highfidelity/fake_braintree/pulls/100"},"html":{"href":"https://github.com/highfidelity/fake_braintree/pull/100"},"issue":{"href":"https://api.github.com/repos/highfidelity/fake_braintree/issues/100"},"comments":{"href":"https://api.github.com/repos/highfidelity/fake_braintree/issues/100/comments"},"review_comments":{"href":"https://api.github.com/repos/highfidelity/fake_braintree/pulls/100/comments"},"review_comment":{"href":"https://api.github.com/repos/highfidelity/fake_braintree/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/highfidelity/fake_braintree/pulls/100/commits"},"statuses":{"href":"https://api.github.com/repos/highfidelity/fake_braintree/statuses/ded62a2108fb3ae28c747624561a621b949e01a5"}}}}