GitHub PullRequestReviewCommentEvent at 2014-07-10 19:08:13
Repository: arcade
Actor: houndci
Payload: {"action":"created","comment":{"url":"https://api.github.com/repos/aandrewjeski/arcade/pulls/comments/14786233","id":14786233,"diff_hunk":"@@ -0,0 +1,23 @@\n+require 'rails_helper'\n+\n+RSpec.describe Wallet, :type => :model do\n+  it { should belong_to :user }\n+\n+  describe 'usd_total' do\n+    it 'calculates usd total' do\n+      wallet = FactoryGirl.create(:wallet, balance_btc: 0.0, balance_usd: 500.0)\n+      trade = FactoryGirl.create(:trade, amount: 1, price: 500.0, trade_type: \"buy\", total: 500.0, wallet: wallet)\n+\n+      expect(trade.wallet.usd_total).to eql(99500)\n+    end\n+  end\n+\n+  describe 'btc_total' do","path":"spec/models/wallet_spec.rb","position":15,"original_position":15,"commit_id":"068b3e44c39fc381f062281a2c61d2dde96fdffd","original_commit_id":"068b3e44c39fc381f062281a2c61d2dde96fdffd","user":{"login":"houndci","id":6697940,"avatar_url":"https://avatars.githubusercontent.com/u/6697940?","gravatar_id":"38d9cefd9971a05bf447f07c6cd332cc","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":"2014-07-10T19:08:13Z","updated_at":"2014-07-10T19:08:13Z","html_url":"https://github.com/aandrewjeski/arcade/pull/3#discussion_r14786233","pull_request_url":"https://api.github.com/repos/aandrewjeski/arcade/pulls/3","_links":{"self":{"href":"https://api.github.com/repos/aandrewjeski/arcade/pulls/comments/14786233"},"html":{"href":"https://github.com/aandrewjeski/arcade/pull/3#discussion_r14786233"},"pull_request":{"href":"https://api.github.com/repos/aandrewjeski/arcade/pulls/3"}}},"pull_request":{"url":"https://api.github.com/repos/aandrewjeski/arcade/pulls/3","id":18239740,"html_url":"https://github.com/aandrewjeski/arcade/pull/3","diff_url":"https://github.com/aandrewjeski/arcade/pull/3.diff","patch_url":"https://github.com/aandrewjeski/arcade/pull/3.patch","issue_url":"https://api.github.com/repos/aandrewjeski/arcade/issues/3","number":3,"state":"open","title":"Wallet","user":{"login":"aandrewjeski","id":6600823,"avatar_url":"https://avatars.githubusercontent.com/u/6600823?","gravatar_id":"f6b0ba359c46a9492915ca2ab4695f8e","url":"https://api.github.com/users/aandrewjeski","html_url":"https://github.com/aandrewjeski","followers_url":"https://api.github.com/users/aandrewjeski/followers","following_url":"https://api.github.com/users/aandrewjeski/following{/other_user}","gists_url":"https://api.github.com/users/aandrewjeski/gists{/gist_id}","starred_url":"https://api.github.com/users/aandrewjeski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aandrewjeski/subscriptions","organizations_url":"https://api.github.com/users/aandrewjeski/orgs","repos_url":"https://api.github.com/users/aandrewjeski/repos","events_url":"https://api.github.com/users/aandrewjeski/events{/privacy}","received_events_url":"https://api.github.com/users/aandrewjeski/received_events","type":"User","site_admin":false},"body":"Wallet branch mostly complete, will add some testing changes to it later.","created_at":"2014-07-10T19:07:57Z","updated_at":"2014-07-10T19:08:13Z","closed_at":null,"merged_at":null,"merge_commit_sha":"bc32dfb60f7aab71e384e2470b1ddaeee05aeb99","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/aandrewjeski/arcade/pulls/3/commits","review_comments_url":"https://api.github.com/repos/aandrewjeski/arcade/pulls/3/comments","review_comment_url":"https://api.github.com/repos/aandrewjeski/arcade/pulls/comments/{number}","comments_url":"https://api.github.com/repos/aandrewjeski/arcade/issues/3/comments","statuses_url":"https://api.github.com/repos/aandrewjeski/arcade/statuses/068b3e44c39fc381f062281a2c61d2dde96fdffd","head":{"label":"aandrewjeski:wallet","ref":"wallet","sha":"068b3e44c39fc381f062281a2c61d2dde96fdffd","user":{"login":"aandrewjeski","id":6600823,"avatar_url":"https://avatars.githubusercontent.com/u/6600823?","gravatar_id":"f6b0ba359c46a9492915ca2ab4695f8e","url":"https://api.github.com/users/aandrewjeski","html_url":"https://github.com/aandrewjeski","followers_url":"https://api.github.com/users/aandrewjeski/followers","following_url":"https://api.github.com/users/aandrewjeski/following{/other_user}","gists_url":"https://api.github.com/users/aandrewjeski/gists{/gist_id}","starred_url":"https://api.github.com/users/aandrewjeski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aandrewjeski/subscriptions","organizations_url":"https://api.github.com/users/aandrewjeski/orgs","repos_url":"https://api.github.com/users/aandrewjeski/repos","events_url":"https://api.github.com/users/aandrewjeski/events{/privacy}","received_events_url":"https://api.github.com/users/aandrewjeski/received_events","type":"User","site_admin":false},"repo":{"id":21465612,"name":"arcade","full_name":"aandrewjeski/arcade","owner":{"login":"aandrewjeski","id":6600823,"avatar_url":"https://avatars.githubusercontent.com/u/6600823?","gravatar_id":"f6b0ba359c46a9492915ca2ab4695f8e","url":"https://api.github.com/users/aandrewjeski","html_url":"https://github.com/aandrewjeski","followers_url":"https://api.github.com/users/aandrewjeski/followers","following_url":"https://api.github.com/users/aandrewjeski/following{/other_user}","gists_url":"https://api.github.com/users/aandrewjeski/gists{/gist_id}","starred_url":"https://api.github.com/users/aandrewjeski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aandrewjeski/subscriptions","organizations_url":"https://api.github.com/users/aandrewjeski/orgs","repos_url":"https://api.github.com/users/aandrewjeski/repos","events_url":"https://api.github.com/users/aandrewjeski/events{/privacy}","received_events_url":"https://api.github.com/users/aandrewjeski/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/aandrewjeski/arcade","description":"A play-trading platform for Bitcoin using the BTC-e API feed","fork":false,"url":"https://api.github.com/repos/aandrewjeski/arcade","forks_url":"https://api.github.com/repos/aandrewjeski/arcade/forks","keys_url":"https://api.github.com/repos/aandrewjeski/arcade/keys{/key_id}","collaborators_url":"https://api.github.com/repos/aandrewjeski/arcade/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/aandrewjeski/arcade/teams","hooks_url":"https://api.github.com/repos/aandrewjeski/arcade/hooks","issue_events_url":"https://api.github.com/repos/aandrewjeski/arcade/issues/events{/number}","events_url":"https://api.github.com/repos/aandrewjeski/arcade/events","assignees_url":"https://api.github.com/repos/aandrewjeski/arcade/assignees{/user}","branches_url":"https://api.github.com/repos/aandrewjeski/arcade/branches{/branch}","tags_url":"https://api.github.com/repos/aandrewjeski/arcade/tags","blobs_url":"https://api.github.com/repos/aandrewjeski/arcade/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/aandrewjeski/arcade/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/aandrewjeski/arcade/git/refs{/sha}","trees_url":"https://api.github.com/repos/aandrewjeski/arcade/git/trees{/sha}","statuses_url":"https://api.github.com/repos/aandrewjeski/arcade/statuses/{sha}","languages_url":"https://api.github.com/repos/aandrewjeski/arcade/languages","stargazers_url":"https://api.github.com/repos/aandrewjeski/arcade/stargazers","contributors_url":"https://api.github.com/repos/aandrewjeski/arcade/contributors","subscribers_url":"https://api.github.com/repos/aandrewjeski/arcade/subscribers","subscription_url":"https://api.github.com/repos/aandrewjeski/arcade/subscription","commits_url":"https://api.github.com/repos/aandrewjeski/arcade/commits{/sha}","git_commits_url":"https://api.github.com/repos/aandrewjeski/arcade/git/commits{/sha}","comments_url":"https://api.github.com/repos/aandrewjeski/arcade/comments{/number}","issue_comment_url":"https://api.github.com/repos/aandrewjeski/arcade/issues/comments/{number}","contents_url":"https://api.github.com/repos/aandrewjeski/arcade/contents/{+path}","compare_url":"https://api.github.com/repos/aandrewjeski/arcade/compare/{base}...{head}","merges_url":"https://api.github.com/repos/aandrewjeski/arcade/merges","archive_url":"https://api.github.com/repos/aandrewjeski/arcade/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/aandrewjeski/arcade/downloads","issues_url":"https://api.github.com/repos/aandrewjeski/arcade/issues{/number}","pulls_url":"https://api.github.com/repos/aandrewjeski/arcade/pulls{/number}","milestones_url":"https://api.github.com/repos/aandrewjeski/arcade/milestones{/number}","notifications_url":"https://api.github.com/repos/aandrewjeski/arcade/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/aandrewjeski/arcade/labels{/name}","releases_url":"https://api.github.com/repos/aandrewjeski/arcade/releases{/id}","created_at":"2014-07-03T14:32:59Z","updated_at":"2014-07-10T17:24:47Z","pushed_at":"2014-07-10T19:07:01Z","git_url":"git://github.com/aandrewjeski/arcade.git","ssh_url":"git@github.com:aandrewjeski/arcade.git","clone_url":"https://github.com/aandrewjeski/arcade.git","svn_url":"https://github.com/aandrewjeski/arcade","homepage":"","size":341,"stargazers_count":5,"watchers_count":5,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":5,"default_branch":"master"}},"base":{"label":"aandrewjeski:master","ref":"master","sha":"eccef4ccdeab5621a1c4050b215c9080b8f49810","user":{"login":"aandrewjeski","id":6600823,"avatar_url":"https://avatars.githubusercontent.com/u/6600823?","gravatar_id":"f6b0ba359c46a9492915ca2ab4695f8e","url":"https://api.github.com/users/aandrewjeski","html_url":"https://github.com/aandrewjeski","followers_url":"https://api.github.com/users/aandrewjeski/followers","following_url":"https://api.github.com/users/aandrewjeski/following{/other_user}","gists_url":"https://api.github.com/users/aandrewjeski/gists{/gist_id}","starred_url":"https://api.github.com/users/aandrewjeski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aandrewjeski/subscriptions","organizations_url":"https://api.github.com/users/aandrewjeski/orgs","repos_url":"https://api.github.com/users/aandrewjeski/repos","events_url":"https://api.github.com/users/aandrewjeski/events{/privacy}","received_events_url":"https://api.github.com/users/aandrewjeski/received_events","type":"User","site_admin":false},"repo":{"id":21465612,"name":"arcade","full_name":"aandrewjeski/arcade","owner":{"login":"aandrewjeski","id":6600823,"avatar_url":"https://avatars.githubusercontent.com/u/6600823?","gravatar_id":"f6b0ba359c46a9492915ca2ab4695f8e","url":"https://api.github.com/users/aandrewjeski","html_url":"https://github.com/aandrewjeski","followers_url":"https://api.github.com/users/aandrewjeski/followers","following_url":"https://api.github.com/users/aandrewjeski/following{/other_user}","gists_url":"https://api.github.com/users/aandrewjeski/gists{/gist_id}","starred_url":"https://api.github.com/users/aandrewjeski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aandrewjeski/subscriptions","organizations_url":"https://api.github.com/users/aandrewjeski/orgs","repos_url":"https://api.github.com/users/aandrewjeski/repos","events_url":"https://api.github.com/users/aandrewjeski/events{/privacy}","received_events_url":"https://api.github.com/users/aandrewjeski/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/aandrewjeski/arcade","description":"A play-trading platform for Bitcoin using the BTC-e API feed","fork":false,"url":"https://api.github.com/repos/aandrewjeski/arcade","forks_url":"https://api.github.com/repos/aandrewjeski/arcade/forks","keys_url":"https://api.github.com/repos/aandrewjeski/arcade/keys{/key_id}","collaborators_url":"https://api.github.com/repos/aandrewjeski/arcade/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/aandrewjeski/arcade/teams","hooks_url":"https://api.github.com/repos/aandrewjeski/arcade/hooks","issue_events_url":"https://api.github.com/repos/aandrewjeski/arcade/issues/events{/number}","events_url":"https://api.github.com/repos/aandrewjeski/arcade/events","assignees_url":"https://api.github.com/repos/aandrewjeski/arcade/assignees{/user}","branches_url":"https://api.github.com/repos/aandrewjeski/arcade/branches{/branch}","tags_url":"https://api.github.com/repos/aandrewjeski/arcade/tags","blobs_url":"https://api.github.com/repos/aandrewjeski/arcade/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/aandrewjeski/arcade/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/aandrewjeski/arcade/git/refs{/sha}","trees_url":"https://api.github.com/repos/aandrewjeski/arcade/git/trees{/sha}","statuses_url":"https://api.github.com/repos/aandrewjeski/arcade/statuses/{sha}","languages_url":"https://api.github.com/repos/aandrewjeski/arcade/languages","stargazers_url":"https://api.github.com/repos/aandrewjeski/arcade/stargazers","contributors_url":"https://api.github.com/repos/aandrewjeski/arcade/contributors","subscribers_url":"https://api.github.com/repos/aandrewjeski/arcade/subscribers","subscription_url":"https://api.github.com/repos/aandrewjeski/arcade/subscription","commits_url":"https://api.github.com/repos/aandrewjeski/arcade/commits{/sha}","git_commits_url":"https://api.github.com/repos/aandrewjeski/arcade/git/commits{/sha}","comments_url":"https://api.github.com/repos/aandrewjeski/arcade/comments{/number}","issue_comment_url":"https://api.github.com/repos/aandrewjeski/arcade/issues/comments/{number}","contents_url":"https://api.github.com/repos/aandrewjeski/arcade/contents/{+path}","compare_url":"https://api.github.com/repos/aandrewjeski/arcade/compare/{base}...{head}","merges_url":"https://api.github.com/repos/aandrewjeski/arcade/merges","archive_url":"https://api.github.com/repos/aandrewjeski/arcade/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/aandrewjeski/arcade/downloads","issues_url":"https://api.github.com/repos/aandrewjeski/arcade/issues{/number}","pulls_url":"https://api.github.com/repos/aandrewjeski/arcade/pulls{/number}","milestones_url":"https://api.github.com/repos/aandrewjeski/arcade/milestones{/number}","notifications_url":"https://api.github.com/repos/aandrewjeski/arcade/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/aandrewjeski/arcade/labels{/name}","releases_url":"https://api.github.com/repos/aandrewjeski/arcade/releases{/id}","created_at":"2014-07-03T14:32:59Z","updated_at":"2014-07-10T17:24:47Z","pushed_at":"2014-07-10T19:07:01Z","git_url":"git://github.com/aandrewjeski/arcade.git","ssh_url":"git@github.com:aandrewjeski/arcade.git","clone_url":"https://github.com/aandrewjeski/arcade.git","svn_url":"https://github.com/aandrewjeski/arcade","homepage":"","size":341,"stargazers_count":5,"watchers_count":5,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":5,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/aandrewjeski/arcade/pulls/3"},"html":{"href":"https://github.com/aandrewjeski/arcade/pull/3"},"issue":{"href":"https://api.github.com/repos/aandrewjeski/arcade/issues/3"},"comments":{"href":"https://api.github.com/repos/aandrewjeski/arcade/issues/3/comments"},"review_comments":{"href":"https://api.github.com/repos/aandrewjeski/arcade/pulls/3/comments"},"review_comment":{"href":"https://api.github.com/repos/aandrewjeski/arcade/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/aandrewjeski/arcade/pulls/3/commits"},"statuses":{"href":"https://api.github.com/repos/aandrewjeski/arcade/statuses/068b3e44c39fc381f062281a2c61d2dde96fdffd"}}}}