{"action":"created","comment":{"url":"https://api.github.com/repos/Firehose-Team-Awesome/chess-game/pulls/comments/40976223","id":40976223,"diff_hunk":"@@ -118,4 +118,31 @@ class PawnTest < ActiveSupport::TestCase\n     assert_not move\n   end\n \n+  test \"update en passant status (true case)\" do\n+    game = Game.create(:white_uid => 1, :black_uid => 1, :game_name => \"New Game\")\n+    pawn = game.pieces.where(:pos_x => 4).where(:pos_y => 1).first    \n+    move = pawn.update_en_passant_status(4, 3)\n+    assert pawn.en_passant  \n+  end\n+\n+  test \"update en passant status (false case)\" do\n+    game = Game.create(:white_uid => 1, :black_uid => 1, :game_name => \"New Game\")\n+    pawn = game.pieces.where(:pos_x => 4).where(:pos_y => 1).first    \n+    move = pawn.update_en_passant_status(4, 2)\n+    assert_not pawn.en_passant  \n+  end\n+\n+  test \"can capture en passant (true case)\" do","path":"test/models/pawn_test.rb","position":18,"original_position":18,"commit_id":"476782e6a6b8f316130501ff4bddad563771ae1d","original_commit_id":"476782e6a6b8f316130501ff4bddad563771ae1d","user":{"login":"shaunshapiro","id":12422111,"avatar_url":"https://avatars.githubusercontent.com/u/12422111?v=3","gravatar_id":"","url":"https://api.github.com/users/shaunshapiro","html_url":"https://github.com/shaunshapiro","followers_url":"https://api.github.com/users/shaunshapiro/followers","following_url":"https://api.github.com/users/shaunshapiro/following{/other_user}","gists_url":"https://api.github.com/users/shaunshapiro/gists{/gist_id}","starred_url":"https://api.github.com/users/shaunshapiro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shaunshapiro/subscriptions","organizations_url":"https://api.github.com/users/shaunshapiro/orgs","repos_url":"https://api.github.com/users/shaunshapiro/repos","events_url":"https://api.github.com/users/shaunshapiro/events{/privacy}","received_events_url":"https://api.github.com/users/shaunshapiro/received_events","type":"User","site_admin":false},"body":"I've been having trouble figuring out why this isn't working. I think it hass something to do with checking if the game and the piece were updated at the same time. Are timestamps more accurate than they show? As in, they display to the second, but in reality are they actually recorded more accurately? I was printing their timestamps to check, but they would probably show up as the same even if they weren't linked, because the test happens to fast anyways","created_at":"2015-10-01T22:47:27Z","updated_at":"2015-10-01T22:47:27Z","html_url":"https://github.com/Firehose-Team-Awesome/chess-game/pull/25#discussion_r40976223","pull_request_url":"https://api.github.com/repos/Firehose-Team-Awesome/chess-game/pulls/25","_links":{"self":{"href":"https://api.github.com/repos/Firehose-Team-Awesome/chess-game/pulls/comments/40976223"},"html":{"href":"https://github.com/Firehose-Team-Awesome/chess-game/pull/25#discussion_r40976223"},"pull_request":{"href":"https://api.github.com/repos/Firehose-Team-Awesome/chess-game/pulls/25"}}},"pull_request":{"url":"https://api.github.com/repos/Firehose-Team-Awesome/chess-game/pulls/25","id":45858217,"html_url":"https://github.com/Firehose-Team-Awesome/chess-game/pull/25","diff_url":"https://github.com/Firehose-Team-Awesome/chess-game/pull/25.diff","patch_url":"https://github.com/Firehose-Team-Awesome/chess-game/pull/25.patch","issue_url":"https://api.github.com/repos/Firehose-Team-Awesome/chess-game/issues/25","number":25,"state":"open","locked":false,"title":"add en_passant method to pawn ","user":{"login":"shaunshapiro","id":12422111,"avatar_url":"https://avatars.githubusercontent.com/u/12422111?v=3","gravatar_id":"","url":"https://api.github.com/users/shaunshapiro","html_url":"https://github.com/shaunshapiro","followers_url":"https://api.github.com/users/shaunshapiro/followers","following_url":"https://api.github.com/users/shaunshapiro/following{/other_user}","gists_url":"https://api.github.com/users/shaunshapiro/gists{/gist_id}","starred_url":"https://api.github.com/users/shaunshapiro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shaunshapiro/subscriptions","organizations_url":"https://api.github.com/users/shaunshapiro/orgs","repos_url":"https://api.github.com/users/shaunshapiro/repos","events_url":"https://api.github.com/users/shaunshapiro/events{/privacy}","received_events_url":"https://api.github.com/users/shaunshapiro/received_events","type":"User","site_admin":false},"body":"& add en_passant column to db to keep track of status.\r\n\r\nStill needs testing. Waiting on move_to! method to be implemented/merged to master.","created_at":"2015-09-24T04:27:30Z","updated_at":"2015-10-01T22:47:27Z","closed_at":null,"merged_at":null,"merge_commit_sha":"9d2d4b91d64185231868536359f45090076c8f89","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Firehose-Team-Awesome/chess-game/pulls/25/commits","review_comments_url":"https://api.github.com/repos/Firehose-Team-Awesome/chess-game/pulls/25/comments","review_comment_url":"https://api.github.com/repos/Firehose-Team-Awesome/chess-game/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Firehose-Team-Awesome/chess-game/issues/25/comments","statuses_url":"https://api.github.com/repos/Firehose-Team-Awesome/chess-game/statuses/476782e6a6b8f316130501ff4bddad563771ae1d","head":{"label":"Firehose-Team-Awesome:en_passant","ref":"en_passant","sha":"476782e6a6b8f316130501ff4bddad563771ae1d","user":{"login":"Firehose-Team-Awesome","id":13895039,"avatar_url":"https://avatars.githubusercontent.com/u/13895039?v=3","gravatar_id":"","url":"https://api.github.com/users/Firehose-Team-Awesome","html_url":"https://github.com/Firehose-Team-Awesome","followers_url":"https://api.github.com/users/Firehose-Team-Awesome/followers","following_url":"https://api.github.com/users/Firehose-Team-Awesome/following{/other_user}","gists_url":"https://api.github.com/users/Firehose-Team-Awesome/gists{/gist_id}","starred_url":"https://api.github.com/users/Firehose-Team-Awesome/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Firehose-Team-Awesome/subscriptions","organizations_url":"https://api.github.com/users/Firehose-Team-Awesome/orgs","repos_url":"https://api.github.com/users/Firehose-Team-Awesome/repos","events_url":"https://api.github.com/users/Firehose-Team-Awesome/events{/privacy}","received_events_url":"https://api.github.com/users/Firehose-Team-Awesome/received_events","type":"Organization","site_admin":false},"repo":{"id":41308280,"name":"chess-game","full_name":"Firehose-Team-Awesome/chess-game","owner":{"login":"Firehose-Team-Awesome","id":13895039,"avatar_url":"https://avatars.githubusercontent.com/u/13895039?v=3","gravatar_id":"","url":"https://api.github.com/users/Firehose-Team-Awesome","html_url":"https://github.com/Firehose-Team-Awesome","followers_url":"https://api.github.com/users/Firehose-Team-Awesome/followers","following_url":"https://api.github.com/users/Firehose-Team-Awesome/following{/other_user}","gists_url":"https://api.github.com/users/Firehose-Team-Awesome/gists{/gist_id}","starred_url":"https://api.github.com/users/Firehose-Team-Awesome/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Firehose-Team-Awesome/subscriptions","organizations_url":"https://api.github.com/users/Firehose-Team-Awesome/orgs","repos_url":"https://api.github.com/users/Firehose-Team-Awesome/repos","events_url":"https://api.github.com/users/Firehose-Team-Awesome/events{/privacy}","received_events_url":"https://api.github.com/users/Firehose-Team-Awesome/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Firehose-Team-Awesome/chess-game","description":"chess-game","fork":false,"url":"https://api.github.com/repos/Firehose-Team-Awesome/chess-game","forks_url":"https://api.github.com/repos/Firehose-Team-Awesome/chess-game/forks","keys_url":"https://api.github.com/repos/Firehose-Team-Awesome/chess-game/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Firehose-Team-Awesome/chess-game/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Firehose-Team-Awesome/chess-game/teams","hooks_url":"https://api.github.com/repos/Firehose-Team-Awesome/chess-game/hooks","issue_events_url":"https://api.github.com/repos/Firehose-Team-Awesome/chess-game/issues/events{/number}","events_url":"https://api.github.com/repos/Firehose-Team-Awesome/chess-game/events","assignees_url":"https://api.github.com/repos/Firehose-Team-Awesome/chess-game/assignees{/user}","branches_url":"https://api.github.com/repos/Firehose-Team-Awesome/chess-game/branches{/branch}","tags_url":"https://api.github.com/repos/Firehose-Team-Awesome/chess-game/tags","blobs_url":"https://api.github.com/repos/Firehose-Team-Awesome/chess-game/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Firehose-Team-Awesome/chess-game/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Firehose-Team-Awesome/chess-game/git/refs{/sha}","trees_url":"https://api.github.com/repos/Firehose-Team-Awesome/chess-game/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Firehose-Team-Awesome/chess-game/statuses/{sha}","languages_url":"https://api.github.com/repos/Firehose-Team-Awesome/chess-game/languages","stargazers_url":"https://api.github.com/repos/Firehose-Team-Awesome/chess-game/stargazers","contributors_url":"https://api.github.com/repos/Firehose-Team-Awesome/chess-game/contributors","subscribers_url":"https://api.github.com/repos/Firehose-Team-Awesome/chess-game/subscribers","subscription_url":"https://api.github.com/repos/Firehose-Team-Awesome/chess-game/subscription","commits_url":"https://api.github.com/repos/Firehose-Team-Awesome/chess-game/commits{/sha}","git_commits_url":"https://api.github.com/repos/Firehose-Team-Awesome/chess-game/git/commits{/sha}","comments_url":"https://api.github.com/repos/Firehose-Team-Awesome/chess-game/comments{/number}","issue_comment_url":"https://api.github.com/repos/Firehose-Team-Awesome/chess-game/issues/comments{/number}","contents_url":"https://api.github.com/repos/Firehose-Team-Awesome/chess-game/contents/{+path}","compare_url":"https://api.github.com/repos/Firehose-Team-Awesome/chess-game/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Firehose-Team-Awesome/chess-game/merges","archive_url":"https://api.github.com/repos/Firehose-Team-Awesome/chess-game/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Firehose-Team-Awesome/chess-game/downloads","issues_url":"https://api.github.com/repos/Firehose-Team-Awesome/chess-game/issues{/number}","pulls_url":"https://api.github.com/repos/Firehose-Team-Awesome/chess-game/pulls{/number}","milestones_url":"https://api.github.com/repos/Firehose-Team-Awesome/chess-game/milestones{/number}","notifications_url":"https://api.github.com/repos/Firehose-Team-Awesome/chess-game/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Firehose-Team-Awesome/chess-game/labels{/name}","releases_url":"https://api.github.com/repos/Firehose-Team-Awesome/chess-game/releases{/id}","created_at":"2015-08-24T14:36:54Z","updated_at":"2015-08-24T14:40:12Z","pushed_at":"2015-10-01T22:43:41Z","git_url":"git://github.com/Firehose-Team-Awesome/chess-game.git","ssh_url":"git@github.com:Firehose-Team-Awesome/chess-game.git","clone_url":"https://github.com/Firehose-Team-Awesome/chess-game.git","svn_url":"https://github.com/Firehose-Team-Awesome/chess-game","homepage":null,"size":1843,"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":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"Firehose-Team-Awesome:master","ref":"master","sha":"c797ef8ec5b5cfeb9fc71401b4a73643edec317c","user":{"login":"Firehose-Team-Awesome","id":13895039,"avatar_url":"https://avatars.githubusercontent.com/u/13895039?v=3","gravatar_id":"","url":"https://api.github.com/users/Firehose-Team-Awesome","html_url":"https://github.com/Firehose-Team-Awesome","followers_url":"https://api.github.com/users/Firehose-Team-Awesome/followers","following_url":"https://api.github.com/users/Firehose-Team-Awesome/following{/other_user}","gists_url":"https://api.github.com/users/Firehose-Team-Awesome/gists{/gist_id}","starred_url":"https://api.github.com/users/Firehose-Team-Awesome/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Firehose-Team-Awesome/subscriptions","organizations_url":"https://api.github.com/users/Firehose-Team-Awesome/orgs","repos_url":"https://api.github.com/users/Firehose-Team-Awesome/repos","events_url":"https://api.github.com/users/Firehose-Team-Awesome/events{/privacy}","received_events_url":"https://api.github.com/users/Firehose-Team-Awesome/received_events","type":"Organization","site_admin":false},"repo":{"id":41308280,"name":"chess-game","full_name":"Firehose-Team-Awesome/chess-game","owner":{"login":"Firehose-Team-Awesome","id":13895039,"avatar_url":"https://avatars.githubusercontent.com/u/13895039?v=3","gravatar_id":"","url":"https://api.github.com/users/Firehose-Team-Awesome","html_url":"https://github.com/Firehose-Team-Awesome","followers_url":"https://api.github.com/users/Firehose-Team-Awesome/followers","following_url":"https://api.github.com/users/Firehose-Team-Awesome/following{/other_user}","gists_url":"https://api.github.com/users/Firehose-Team-Awesome/gists{/gist_id}","starred_url":"https://api.github.com/users/Firehose-Team-Awesome/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Firehose-Team-Awesome/subscriptions","organizations_url":"https://api.github.com/users/Firehose-Team-Awesome/orgs","repos_url":"https://api.github.com/users/Firehose-Team-Awesome/repos","events_url":"https://api.github.com/users/Firehose-Team-Awesome/events{/privacy}","received_events_url":"https://api.github.com/users/Firehose-Team-Awesome/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Firehose-Team-Awesome/chess-game","description":"chess-game","fork":false,"url":"https://api.github.com/repos/Firehose-Team-Awesome/chess-game","forks_url":"https://api.github.com/repos/Firehose-Team-Awesome/chess-game/forks","keys_url":"https://api.github.com/repos/Firehose-Team-Awesome/chess-game/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Firehose-Team-Awesome/chess-game/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Firehose-Team-Awesome/chess-game/teams","hooks_url":"https://api.github.com/repos/Firehose-Team-Awesome/chess-game/hooks","issue_events_url":"https://api.github.com/repos/Firehose-Team-Awesome/chess-game/issues/events{/number}","events_url":"https://api.github.com/repos/Firehose-Team-Awesome/chess-game/events","assignees_url":"https://api.github.com/repos/Firehose-Team-Awesome/chess-game/assignees{/user}","branches_url":"https://api.github.com/repos/Firehose-Team-Awesome/chess-game/branches{/branch}","tags_url":"https://api.github.com/repos/Firehose-Team-Awesome/chess-game/tags","blobs_url":"https://api.github.com/repos/Firehose-Team-Awesome/chess-game/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Firehose-Team-Awesome/chess-game/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Firehose-Team-Awesome/chess-game/git/refs{/sha}","trees_url":"https://api.github.com/repos/Firehose-Team-Awesome/chess-game/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Firehose-Team-Awesome/chess-game/statuses/{sha}","languages_url":"https://api.github.com/repos/Firehose-Team-Awesome/chess-game/languages","stargazers_url":"https://api.github.com/repos/Firehose-Team-Awesome/chess-game/stargazers","contributors_url":"https://api.github.com/repos/Firehose-Team-Awesome/chess-game/contributors","subscribers_url":"https://api.github.com/repos/Firehose-Team-Awesome/chess-game/subscribers","subscription_url":"https://api.github.com/repos/Firehose-Team-Awesome/chess-game/subscription","commits_url":"https://api.github.com/repos/Firehose-Team-Awesome/chess-game/commits{/sha}","git_commits_url":"https://api.github.com/repos/Firehose-Team-Awesome/chess-game/git/commits{/sha}","comments_url":"https://api.github.com/repos/Firehose-Team-Awesome/chess-game/comments{/number}","issue_comment_url":"https://api.github.com/repos/Firehose-Team-Awesome/chess-game/issues/comments{/number}","contents_url":"https://api.github.com/repos/Firehose-Team-Awesome/chess-game/contents/{+path}","compare_url":"https://api.github.com/repos/Firehose-Team-Awesome/chess-game/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Firehose-Team-Awesome/chess-game/merges","archive_url":"https://api.github.com/repos/Firehose-Team-Awesome/chess-game/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Firehose-Team-Awesome/chess-game/downloads","issues_url":"https://api.github.com/repos/Firehose-Team-Awesome/chess-game/issues{/number}","pulls_url":"https://api.github.com/repos/Firehose-Team-Awesome/chess-game/pulls{/number}","milestones_url":"https://api.github.com/repos/Firehose-Team-Awesome/chess-game/milestones{/number}","notifications_url":"https://api.github.com/repos/Firehose-Team-Awesome/chess-game/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Firehose-Team-Awesome/chess-game/labels{/name}","releases_url":"https://api.github.com/repos/Firehose-Team-Awesome/chess-game/releases{/id}","created_at":"2015-08-24T14:36:54Z","updated_at":"2015-08-24T14:40:12Z","pushed_at":"2015-10-01T22:43:41Z","git_url":"git://github.com/Firehose-Team-Awesome/chess-game.git","ssh_url":"git@github.com:Firehose-Team-Awesome/chess-game.git","clone_url":"https://github.com/Firehose-Team-Awesome/chess-game.git","svn_url":"https://github.com/Firehose-Team-Awesome/chess-game","homepage":null,"size":1843,"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":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Firehose-Team-Awesome/chess-game/pulls/25"},"html":{"href":"https://github.com/Firehose-Team-Awesome/chess-game/pull/25"},"issue":{"href":"https://api.github.com/repos/Firehose-Team-Awesome/chess-game/issues/25"},"comments":{"href":"https://api.github.com/repos/Firehose-Team-Awesome/chess-game/issues/25/comments"},"review_comments":{"href":"https://api.github.com/repos/Firehose-Team-Awesome/chess-game/pulls/25/comments"},"review_comment":{"href":"https://api.github.com/repos/Firehose-Team-Awesome/chess-game/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Firehose-Team-Awesome/chess-game/pulls/25/commits"},"statuses":{"href":"https://api.github.com/repos/Firehose-Team-Awesome/chess-game/statuses/476782e6a6b8f316130501ff4bddad563771ae1d"}}}}