GitHub PullRequestReviewCommentEvent at 2014-09-18 02:54:07
Repository: playingcards
Actor: ryansobol
Payload: {"action":"created","comment":{"url":"https://api.github.com/repos/phillwilt/playingcards/pulls/comments/17706492","id":17706492,"diff_hunk":"@@ -0,0 +1,58 @@\n+require \"minitest/spec\"\n+require \"minitest/autorun\"\n+require \"minitest/pride\"\n+\n+require \"card\"\n+\n+describe Card do\n+\n+  card_suits = [\"Spades\", \"Hearts\", \"Clubs\", \"Diamonds\"]\n+  card_values = [\"2\", \"3\", \"4\", \"5\", \"6\", \"7\", \"8\", \"9\", \"10\", \"Jack\",\n+      \"Queen\", \"King\", \"Ace\"]\n+\n+  it \"has a suit\" do\n+\n+    card_value = card_values[0]\n+\n+    card_suits.each do |card_suit|\n+      card = Card.new(card_value, card_suit)\n+      card.suit.must_equal card_suit\n+    end\n+\n+  end\n+\n+  it \"has a value\" do\n+\n+    card_suit = card_suits[0]\n+\n+    card_values.each do |card_value|\n+      card = Card.new(card_value, card_suit)\n+      card.value.must_equal card_value\n+    end\n+  end\n+\n+  it \"is equal to another card\" do\n+    card1 = Card.new(card_values[0],card_suits[0])\n+    card2 = Card.new(card_values[0],card_suits[0])\n+\n+    (card1 == card2).must_equal true\n+  end\n+\n+  it \"is not equal to another card\" do\n+    card1 = Card.new(card_values[0],card_suits[0])\n+    card2 = Card.new(card_values[1],card_suits[1])\n+\n+    (card1 == card2).must_equal false\n+  end\n+\n+  it \"has a to_str\" do\n+    card = Card.new(card_values[0],card_suits[0])\n+    card.must_respond_to :to_str","path":"spec/card_spec.rb","position":50,"original_position":50,"commit_id":"14207a51324097555f5d7696e48d68a871d2ff8f","original_commit_id":"14207a51324097555f5d7696e48d68a871d2ff8f","user":{"login":"ryansobol","id":5688,"avatar_url":"https://avatars.githubusercontent.com/u/5688?v=2","gravatar_id":"c4f41645e595f53f12e788625dfc4bde","url":"https://api.github.com/users/ryansobol","html_url":"https://github.com/ryansobol","followers_url":"https://api.github.com/users/ryansobol/followers","following_url":"https://api.github.com/users/ryansobol/following{/other_user}","gists_url":"https://api.github.com/users/ryansobol/gists{/gist_id}","starred_url":"https://api.github.com/users/ryansobol/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ryansobol/subscriptions","organizations_url":"https://api.github.com/users/ryansobol/orgs","repos_url":"https://api.github.com/users/ryansobol/repos","events_url":"https://api.github.com/users/ryansobol/events{/privacy}","received_events_url":"https://api.github.com/users/ryansobol/received_events","type":"User","site_admin":false},"body":"It's not enough to check that an object responds to a method. Given a `card`, what should `card.to_str` equal?","created_at":"2014-09-18T02:54:07Z","updated_at":"2014-09-18T02:54:07Z","html_url":"https://github.com/phillwilt/playingcards/pull/1#discussion_r17706492","pull_request_url":"https://api.github.com/repos/phillwilt/playingcards/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/phillwilt/playingcards/pulls/comments/17706492"},"html":{"href":"https://github.com/phillwilt/playingcards/pull/1#discussion_r17706492"},"pull_request":{"href":"https://api.github.com/repos/phillwilt/playingcards/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/phillwilt/playingcards/pulls/1","id":21345078,"html_url":"https://github.com/phillwilt/playingcards/pull/1","diff_url":"https://github.com/phillwilt/playingcards/pull/1.diff","patch_url":"https://github.com/phillwilt/playingcards/pull/1.patch","issue_url":"https://api.github.com/repos/phillwilt/playingcards/issues/1","number":1,"state":"closed","locked":false,"title":"Spec","user":{"login":"phillwilt","id":1575248,"avatar_url":"https://avatars.githubusercontent.com/u/1575248?v=2","gravatar_id":"d4bdd9d1c425a4989ac328cf61b8976e","url":"https://api.github.com/users/phillwilt","html_url":"https://github.com/phillwilt","followers_url":"https://api.github.com/users/phillwilt/followers","following_url":"https://api.github.com/users/phillwilt/following{/other_user}","gists_url":"https://api.github.com/users/phillwilt/gists{/gist_id}","starred_url":"https://api.github.com/users/phillwilt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/phillwilt/subscriptions","organizations_url":"https://api.github.com/users/phillwilt/orgs","repos_url":"https://api.github.com/users/phillwilt/repos","events_url":"https://api.github.com/users/phillwilt/events{/privacy}","received_events_url":"https://api.github.com/users/phillwilt/received_events","type":"User","site_admin":false},"body":"implement card class and deck class","created_at":"2014-09-17T05:01:41Z","updated_at":"2014-09-18T02:54:07Z","closed_at":"2014-09-17T05:02:07Z","merged_at":"2014-09-17T05:02:07Z","merge_commit_sha":"ed9bda84e898f0d650927f1a8850ddcbb94c3885","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/phillwilt/playingcards/pulls/1/commits","review_comments_url":"https://api.github.com/repos/phillwilt/playingcards/pulls/1/comments","review_comment_url":"https://api.github.com/repos/phillwilt/playingcards/pulls/comments/{number}","comments_url":"https://api.github.com/repos/phillwilt/playingcards/issues/1/comments","statuses_url":"https://api.github.com/repos/phillwilt/playingcards/statuses/14207a51324097555f5d7696e48d68a871d2ff8f","head":{"label":"phillwilt:spec","ref":"spec","sha":"14207a51324097555f5d7696e48d68a871d2ff8f","user":{"login":"phillwilt","id":1575248,"avatar_url":"https://avatars.githubusercontent.com/u/1575248?v=2","gravatar_id":"d4bdd9d1c425a4989ac328cf61b8976e","url":"https://api.github.com/users/phillwilt","html_url":"https://github.com/phillwilt","followers_url":"https://api.github.com/users/phillwilt/followers","following_url":"https://api.github.com/users/phillwilt/following{/other_user}","gists_url":"https://api.github.com/users/phillwilt/gists{/gist_id}","starred_url":"https://api.github.com/users/phillwilt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/phillwilt/subscriptions","organizations_url":"https://api.github.com/users/phillwilt/orgs","repos_url":"https://api.github.com/users/phillwilt/repos","events_url":"https://api.github.com/users/phillwilt/events{/privacy}","received_events_url":"https://api.github.com/users/phillwilt/received_events","type":"User","site_admin":false},"repo":{"id":24120478,"name":"playingcards","full_name":"phillwilt/playingcards","owner":{"login":"phillwilt","id":1575248,"avatar_url":"https://avatars.githubusercontent.com/u/1575248?v=2","gravatar_id":"d4bdd9d1c425a4989ac328cf61b8976e","url":"https://api.github.com/users/phillwilt","html_url":"https://github.com/phillwilt","followers_url":"https://api.github.com/users/phillwilt/followers","following_url":"https://api.github.com/users/phillwilt/following{/other_user}","gists_url":"https://api.github.com/users/phillwilt/gists{/gist_id}","starred_url":"https://api.github.com/users/phillwilt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/phillwilt/subscriptions","organizations_url":"https://api.github.com/users/phillwilt/orgs","repos_url":"https://api.github.com/users/phillwilt/repos","events_url":"https://api.github.com/users/phillwilt/events{/privacy}","received_events_url":"https://api.github.com/users/phillwilt/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/phillwilt/playingcards","description":"","fork":false,"url":"https://api.github.com/repos/phillwilt/playingcards","forks_url":"https://api.github.com/repos/phillwilt/playingcards/forks","keys_url":"https://api.github.com/repos/phillwilt/playingcards/keys{/key_id}","collaborators_url":"https://api.github.com/repos/phillwilt/playingcards/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/phillwilt/playingcards/teams","hooks_url":"https://api.github.com/repos/phillwilt/playingcards/hooks","issue_events_url":"https://api.github.com/repos/phillwilt/playingcards/issues/events{/number}","events_url":"https://api.github.com/repos/phillwilt/playingcards/events","assignees_url":"https://api.github.com/repos/phillwilt/playingcards/assignees{/user}","branches_url":"https://api.github.com/repos/phillwilt/playingcards/branches{/branch}","tags_url":"https://api.github.com/repos/phillwilt/playingcards/tags","blobs_url":"https://api.github.com/repos/phillwilt/playingcards/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/phillwilt/playingcards/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/phillwilt/playingcards/git/refs{/sha}","trees_url":"https://api.github.com/repos/phillwilt/playingcards/git/trees{/sha}","statuses_url":"https://api.github.com/repos/phillwilt/playingcards/statuses/{sha}","languages_url":"https://api.github.com/repos/phillwilt/playingcards/languages","stargazers_url":"https://api.github.com/repos/phillwilt/playingcards/stargazers","contributors_url":"https://api.github.com/repos/phillwilt/playingcards/contributors","subscribers_url":"https://api.github.com/repos/phillwilt/playingcards/subscribers","subscription_url":"https://api.github.com/repos/phillwilt/playingcards/subscription","commits_url":"https://api.github.com/repos/phillwilt/playingcards/commits{/sha}","git_commits_url":"https://api.github.com/repos/phillwilt/playingcards/git/commits{/sha}","comments_url":"https://api.github.com/repos/phillwilt/playingcards/comments{/number}","issue_comment_url":"https://api.github.com/repos/phillwilt/playingcards/issues/comments/{number}","contents_url":"https://api.github.com/repos/phillwilt/playingcards/contents/{+path}","compare_url":"https://api.github.com/repos/phillwilt/playingcards/compare/{base}...{head}","merges_url":"https://api.github.com/repos/phillwilt/playingcards/merges","archive_url":"https://api.github.com/repos/phillwilt/playingcards/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/phillwilt/playingcards/downloads","issues_url":"https://api.github.com/repos/phillwilt/playingcards/issues{/number}","pulls_url":"https://api.github.com/repos/phillwilt/playingcards/pulls{/number}","milestones_url":"https://api.github.com/repos/phillwilt/playingcards/milestones{/number}","notifications_url":"https://api.github.com/repos/phillwilt/playingcards/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/phillwilt/playingcards/labels{/name}","releases_url":"https://api.github.com/repos/phillwilt/playingcards/releases{/id}","created_at":"2014-09-16T22:39:28Z","updated_at":"2014-09-16T22:40:08Z","pushed_at":"2014-09-17T17:29:15Z","git_url":"git://github.com/phillwilt/playingcards.git","ssh_url":"git@github.com:phillwilt/playingcards.git","clone_url":"https://github.com/phillwilt/playingcards.git","svn_url":"https://github.com/phillwilt/playingcards","homepage":null,"size":0,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"phillwilt:master","ref":"master","sha":"9fb945cd296372fa850402395cc8c58c4eab7aff","user":{"login":"phillwilt","id":1575248,"avatar_url":"https://avatars.githubusercontent.com/u/1575248?v=2","gravatar_id":"d4bdd9d1c425a4989ac328cf61b8976e","url":"https://api.github.com/users/phillwilt","html_url":"https://github.com/phillwilt","followers_url":"https://api.github.com/users/phillwilt/followers","following_url":"https://api.github.com/users/phillwilt/following{/other_user}","gists_url":"https://api.github.com/users/phillwilt/gists{/gist_id}","starred_url":"https://api.github.com/users/phillwilt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/phillwilt/subscriptions","organizations_url":"https://api.github.com/users/phillwilt/orgs","repos_url":"https://api.github.com/users/phillwilt/repos","events_url":"https://api.github.com/users/phillwilt/events{/privacy}","received_events_url":"https://api.github.com/users/phillwilt/received_events","type":"User","site_admin":false},"repo":{"id":24120478,"name":"playingcards","full_name":"phillwilt/playingcards","owner":{"login":"phillwilt","id":1575248,"avatar_url":"https://avatars.githubusercontent.com/u/1575248?v=2","gravatar_id":"d4bdd9d1c425a4989ac328cf61b8976e","url":"https://api.github.com/users/phillwilt","html_url":"https://github.com/phillwilt","followers_url":"https://api.github.com/users/phillwilt/followers","following_url":"https://api.github.com/users/phillwilt/following{/other_user}","gists_url":"https://api.github.com/users/phillwilt/gists{/gist_id}","starred_url":"https://api.github.com/users/phillwilt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/phillwilt/subscriptions","organizations_url":"https://api.github.com/users/phillwilt/orgs","repos_url":"https://api.github.com/users/phillwilt/repos","events_url":"https://api.github.com/users/phillwilt/events{/privacy}","received_events_url":"https://api.github.com/users/phillwilt/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/phillwilt/playingcards","description":"","fork":false,"url":"https://api.github.com/repos/phillwilt/playingcards","forks_url":"https://api.github.com/repos/phillwilt/playingcards/forks","keys_url":"https://api.github.com/repos/phillwilt/playingcards/keys{/key_id}","collaborators_url":"https://api.github.com/repos/phillwilt/playingcards/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/phillwilt/playingcards/teams","hooks_url":"https://api.github.com/repos/phillwilt/playingcards/hooks","issue_events_url":"https://api.github.com/repos/phillwilt/playingcards/issues/events{/number}","events_url":"https://api.github.com/repos/phillwilt/playingcards/events","assignees_url":"https://api.github.com/repos/phillwilt/playingcards/assignees{/user}","branches_url":"https://api.github.com/repos/phillwilt/playingcards/branches{/branch}","tags_url":"https://api.github.com/repos/phillwilt/playingcards/tags","blobs_url":"https://api.github.com/repos/phillwilt/playingcards/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/phillwilt/playingcards/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/phillwilt/playingcards/git/refs{/sha}","trees_url":"https://api.github.com/repos/phillwilt/playingcards/git/trees{/sha}","statuses_url":"https://api.github.com/repos/phillwilt/playingcards/statuses/{sha}","languages_url":"https://api.github.com/repos/phillwilt/playingcards/languages","stargazers_url":"https://api.github.com/repos/phillwilt/playingcards/stargazers","contributors_url":"https://api.github.com/repos/phillwilt/playingcards/contributors","subscribers_url":"https://api.github.com/repos/phillwilt/playingcards/subscribers","subscription_url":"https://api.github.com/repos/phillwilt/playingcards/subscription","commits_url":"https://api.github.com/repos/phillwilt/playingcards/commits{/sha}","git_commits_url":"https://api.github.com/repos/phillwilt/playingcards/git/commits{/sha}","comments_url":"https://api.github.com/repos/phillwilt/playingcards/comments{/number}","issue_comment_url":"https://api.github.com/repos/phillwilt/playingcards/issues/comments/{number}","contents_url":"https://api.github.com/repos/phillwilt/playingcards/contents/{+path}","compare_url":"https://api.github.com/repos/phillwilt/playingcards/compare/{base}...{head}","merges_url":"https://api.github.com/repos/phillwilt/playingcards/merges","archive_url":"https://api.github.com/repos/phillwilt/playingcards/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/phillwilt/playingcards/downloads","issues_url":"https://api.github.com/repos/phillwilt/playingcards/issues{/number}","pulls_url":"https://api.github.com/repos/phillwilt/playingcards/pulls{/number}","milestones_url":"https://api.github.com/repos/phillwilt/playingcards/milestones{/number}","notifications_url":"https://api.github.com/repos/phillwilt/playingcards/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/phillwilt/playingcards/labels{/name}","releases_url":"https://api.github.com/repos/phillwilt/playingcards/releases{/id}","created_at":"2014-09-16T22:39:28Z","updated_at":"2014-09-16T22:40:08Z","pushed_at":"2014-09-17T17:29:15Z","git_url":"git://github.com/phillwilt/playingcards.git","ssh_url":"git@github.com:phillwilt/playingcards.git","clone_url":"https://github.com/phillwilt/playingcards.git","svn_url":"https://github.com/phillwilt/playingcards","homepage":null,"size":0,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/phillwilt/playingcards/pulls/1"},"html":{"href":"https://github.com/phillwilt/playingcards/pull/1"},"issue":{"href":"https://api.github.com/repos/phillwilt/playingcards/issues/1"},"comments":{"href":"https://api.github.com/repos/phillwilt/playingcards/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/phillwilt/playingcards/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/phillwilt/playingcards/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/phillwilt/playingcards/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/phillwilt/playingcards/statuses/14207a51324097555f5d7696e48d68a871d2ff8f"}}}}